Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001459/0.001459, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.13/2.13, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001106/0.001106, allocations: 90.47 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.684e-05/2.696e-05, allocations: 4 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3592/0.3593, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1653/0.5247, allocations: 101.4 MB / 463.8 MB, free: 0.7422 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/0.525, allocations: 75.94 kB / 463.9 MB, free: 0.668 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6811/1.206, allocations: 118 MB / 0.5683 GB, free: 73.18 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.425e-06/1.206, allocations: 0 / 0.5683 GB, free: 73.18 MB / 395.1 MB Notification: Performance of Transformations before backend: time 6.705e-05/1.206, allocations: 44 kB / 0.5684 GB, free: 73.14 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.006397/1.213, allocations: 2.596 MB / 0.5709 GB, free: 70.49 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/1.213, allocations: 8.031 kB / 0.5709 GB, free: 70.48 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007533/1.213, allocations: 379.4 kB / 0.5713 GB, free: 70.11 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005581/1.219, allocations: 2.231 MB / 0.5734 GB, free: 67.89 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.926e-05/1.219, allocations: 19.94 kB / 0.5735 GB, free: 67.87 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001668/1.219, allocations: 28 kB / 0.5735 GB, free: 67.84 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001496/1.221, allocations: 0.6646 MB / 0.5741 GB, free: 67.18 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/1.222, allocations: 0.6972 MB / 0.5748 GB, free: 66.45 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.143e-05/1.222, allocations: 0 / 0.5748 GB, free: 66.45 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/1.222, allocations: 0 / 0.5748 GB, free: 66.45 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.351e-05/1.222, allocations: 23.98 kB / 0.5748 GB, free: 66.42 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007474/1.23, allocations: 2.809 MB / 0.5776 GB, free: 63.59 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/1.231, allocations: 0.5753 MB / 0.5781 GB, free: 62.98 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009436/1.232, allocations: 0.5847 MB / 0.5787 GB, free: 62.4 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04533/1.277, allocations: 36.05 MB / 0.6139 GB, free: 21.26 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006194/1.278, allocations: 313.5 kB / 0.6142 GB, free: 20.94 MB / 395.1 MB Notification: Performance of pre-optimization done (n=49): time 4.398e-06/1.278, allocations: 3.938 kB / 0.6142 GB, free: 20.94 MB / 395.1 MB Notification: Performance of matching and sorting (n=49): time 0.002106/1.28, allocations: 0.8571 MB / 0.6151 GB, free: 20.07 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/1.28, allocations: 273 kB / 0.6153 GB, free: 19.74 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003638/1.284, allocations: 2.104 MB / 0.6174 GB, free: 17.62 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001493/1.284, allocations: 29.7 kB / 0.6174 GB, free: 17.59 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001161/1.285, allocations: 1.146 MB / 0.6185 GB, free: 16.43 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002079/1.286, allocations: 157.8 kB / 0.6187 GB, free: 16.28 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.981e-05/1.286, allocations: 0 / 0.6187 GB, free: 16.28 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 8.279e-05/1.286, allocations: 346.8 kB / 0.619 GB, free: 15.93 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004165/1.286, allocations: 166.6 kB / 0.6192 GB, free: 15.77 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005954/1.287, allocations: 0.5644 MB / 0.6197 GB, free: 15.01 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006357/1.287, allocations: 260.9 kB / 0.62 GB, free: 14.75 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/1.287, allocations: 4 kB / 0.62 GB, free: 14.75 MB / 395.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001861/1.289, allocations: 0.7755 MB / 0.6207 GB, free: 13.97 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.698e-05/1.289, allocations: 12 kB / 0.6207 GB, free: 13.96 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001547/1.29, allocations: 83.94 kB / 0.6208 GB, free: 13.88 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007585/1.29, allocations: 282.4 kB / 0.6211 GB, free: 13.6 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/1.291, allocations: 183.6 kB / 0.6213 GB, free: 13.42 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/1.293, allocations: 0.9077 MB / 0.6221 GB, free: 12.48 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002017/1.295, allocations: 115 kB / 0.6223 GB, free: 12.37 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002441/1.295, allocations: 63.98 kB / 0.6223 GB, free: 12.31 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002636/1.295, allocations: 148.6 kB / 0.6225 GB, free: 12.16 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002099/1.297, allocations: 0.8609 MB / 0.6233 GB, free: 11.28 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006601/1.298, allocations: 367.6 kB / 0.6236 GB, free: 10.91 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004603/1.303, allocations: 1.177 MB / 0.6248 GB, free: 9.73 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/1.303, allocations: 4 kB / 0.6248 GB, free: 9.727 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/1.303, allocations: 4 kB / 0.6248 GB, free: 9.723 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/1.303, allocations: 3.938 kB / 0.6248 GB, free: 9.719 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004717/1.308, allocations: 2.014 MB / 0.6268 GB, free: 7.633 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001459/1.308, allocations: 75.98 kB / 0.6268 GB, free: 7.559 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005892/1.308, allocations: 72.06 kB / 0.6269 GB, free: 7.488 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006465/1.309, allocations: 259 kB / 0.6272 GB, free: 7.234 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-05/1.309, allocations: 35.98 kB / 0.6272 GB, free: 7.199 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001214/1.31, allocations: 0.8958 MB / 0.6281 GB, free: 6.277 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.293e-06/1.31, allocations: 3.984 kB / 0.6281 GB, free: 6.273 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002085/1.312, allocations: 1.114 MB / 0.6292 GB, free: 5.082 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001397/1.314, allocations: 464.6 kB / 0.6296 GB, free: 4.605 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007219/1.315, allocations: 7.953 kB / 0.6296 GB, free: 4.598 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001484/1.316, allocations: 39.95 kB / 0.6296 GB, free: 4.559 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002184/1.316, allocations: 63.94 kB / 0.6297 GB, free: 4.496 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/1.316, allocations: 39.98 kB / 0.6297 GB, free: 4.457 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002985/1.319, allocations: 1.566 MB / 0.6313 GB, free: 2.887 MB / 395.1 MB Notification: Performance of sort global known variables: time 5.81e-07/1.32, allocations: 0 / 0.6313 GB, free: 2.887 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002329/1.322, allocations: 0.5815 MB / 0.6318 GB, free: 2.305 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.004126/1.326, allocations: 2.757 MB / 0.6345 GB, free: 15.49 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.001984/1.328, allocations: 0.6971 MB / 0.6352 GB, free: 14.78 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/1.328, allocations: 4.125 kB / 0.6352 GB, free: 14.78 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/1.329, allocations: 432.2 kB / 0.6356 GB, free: 14.32 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002863/1.332, allocations: 463.3 kB / 0.6361 GB, free: 13.87 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01014/1.342, allocations: 3.27 MB / 0.6393 GB, free: 10.52 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001695/1.344, allocations: 1.666 MB / 0.6409 GB, free: 8.824 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002023/1.346, allocations: 1.132 MB / 0.642 GB, free: 7.695 MB / 411.1 MB Notification: Performance of SimCode: time 1.332e-06/1.346, allocations: 3.938 kB / 0.642 GB, free: 7.691 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.856/5.202, allocations: 55.27 MB / 0.696 GB, free: 82.64 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat