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.001527/0.001527, allocations: 185.8 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.936/1.936, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00114/0.00114, allocations: 88.44 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003951/0.0003951, allocations: 8 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3602/0.3607, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1819/0.5426, allocations: 102.2 MB / 476.8 MB, free: 10.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/0.543, allocations: 83.95 kB / 476.9 MB, free: 10.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6551/1.198, allocations: 123.3 MB / 0.5861 GB, free: 27.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.806e-06/1.198, allocations: 0 / 0.5861 GB, free: 27.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.422e-05/1.198, allocations: 44 kB / 0.5862 GB, free: 27.14 MB / 378.7 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.008464/1.207, allocations: 3.262 MB / 0.5894 GB, free: 23.81 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/1.207, allocations: 8.031 kB / 0.5894 GB, free: 23.8 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003876/1.207, allocations: 98.5 kB / 0.5895 GB, free: 23.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007438/1.208, allocations: 375.5 kB / 0.5898 GB, free: 23.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005962/1.214, allocations: 2.259 MB / 0.592 GB, free: 20.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.99e-05/1.214, allocations: 37 kB / 0.5921 GB, free: 20.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002259/1.214, allocations: 55.89 kB / 0.5921 GB, free: 20.9 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002225/1.216, allocations: 0.8338 MB / 0.5929 GB, free: 20.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.54e-05/1.217, allocations: 0 / 0.5929 GB, free: 20.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000117/1.217, allocations: 24 kB / 0.593 GB, free: 20.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-05/1.217, allocations: 19.98 kB / 0.593 GB, free: 19.99 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004284/1.221, allocations: 0.8241 MB / 0.5938 GB, free: 19.17 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01403/1.235, allocations: 2.938 MB / 0.5967 GB, free: 16.17 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002764/1.238, allocations: 0.727 MB / 0.5974 GB, free: 15.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05349/1.292, allocations: 35.91 MB / 0.6324 GB, free: 6.359 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001348/1.293, allocations: 393.3 kB / 0.6328 GB, free: 5.965 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 4.558e-06/1.293, allocations: 0 / 0.6328 GB, free: 5.965 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.006082/1.299, allocations: 1.447 MB / 0.6342 GB, free: 4.484 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000183/1.299, allocations: 277 kB / 0.6345 GB, free: 4.152 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005968/1.305, allocations: 2.347 MB / 0.6368 GB, free: 1.793 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001821/1.306, allocations: 37.7 kB / 0.6368 GB, free: 1.75 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001797/1.307, allocations: 1.142 MB / 0.6379 GB, free: 0.6016 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003624/1.308, allocations: 169.7 kB / 0.6381 GB, free: 444 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.596e-05/1.308, allocations: 16 kB / 0.6381 GB, free: 428 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000175/1.308, allocations: 338.8 kB / 0.6384 GB, free: 80 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001125/1.309, allocations: 261.9 kB / 0.6387 GB, free: 15.82 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001428/1.311, allocations: 0.6543 MB / 0.6393 GB, free: 14.98 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/1.312, allocations: 340.1 kB / 0.6396 GB, free: 14.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.84e-05/1.312, allocations: 7.953 kB / 0.6397 GB, free: 14.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003523/1.316, allocations: 1.017 MB / 0.6406 GB, free: 13.61 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.765e-05/1.316, allocations: 12 kB / 0.6407 GB, free: 13.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001907/1.316, allocations: 83.98 kB / 0.6407 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009414/1.317, allocations: 284.6 kB / 0.641 GB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/1.318, allocations: 171.7 kB / 0.6412 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001687/1.32, allocations: 0.8866 MB / 0.642 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002181/1.322, allocations: 127 kB / 0.6422 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002508/1.322, allocations: 79.95 kB / 0.6422 GB, free: 11.96 MB / 426.7 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 () * Number of clocked 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.001628/1.324, allocations: 422.4 kB / 0.6426 GB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008521/1.325, allocations: 367.5 kB / 0.643 GB, free: 11.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00641/1.331, allocations: 1.361 MB / 0.6443 GB, free: 9.797 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.691e-05/1.331, allocations: 11.98 kB / 0.6443 GB, free: 9.785 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/1.331, allocations: 0 / 0.6443 GB, free: 9.785 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/1.331, allocations: 0 / 0.6443 GB, free: 9.785 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007097/1.338, allocations: 2.256 MB / 0.6465 GB, free: 7.445 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001726/1.339, allocations: 75.98 kB / 0.6466 GB, free: 7.371 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006615/1.339, allocations: 72.06 kB / 0.6467 GB, free: 7.301 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008514/1.34, allocations: 260.6 kB / 0.6469 GB, free: 7.043 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001237/1.34, allocations: 39.98 kB / 0.647 GB, free: 7.004 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001525/1.342, allocations: 0.853 MB / 0.6478 GB, free: 6.125 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.613e-06/1.342, allocations: 0 / 0.6478 GB, free: 6.125 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003768/1.346, allocations: 1.282 MB / 0.649 GB, free: 4.766 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/1.347, allocations: 472.4 kB / 0.6495 GB, free: 4.281 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007028/1.348, allocations: 16 kB / 0.6495 GB, free: 4.266 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001635/1.35, allocations: 43.95 kB / 0.6496 GB, free: 4.223 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003037/1.35, allocations: 63.88 kB / 0.6496 GB, free: 4.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/1.35, allocations: 39.98 kB / 0.6497 GB, free: 4.121 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004681/1.355, allocations: 1.805 MB / 0.6514 GB, free: 2.312 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.355, allocations: 0 / 0.6514 GB, free: 2.312 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002691/1.358, allocations: 0.6322 MB / 0.652 GB, free: 1.68 MB / 426.7 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) * Number of clocked states: 0 () * 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.3036/1.661, allocations: 2.809 MB / 0.6548 GB, free: 100.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003062/1.664, allocations: 0.8862 MB / 0.6556 GB, free: 100.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/1.664, allocations: 6.234 kB / 0.6556 GB, free: 100.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00158/1.666, allocations: 0.5035 MB / 0.6561 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002806/1.669, allocations: 466.5 kB / 0.6566 GB, free: 100.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04719/1.716, allocations: 25.13 MB / 0.6811 GB, free: 83.06 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001381/1.717, allocations: 1.663 MB / 0.6828 GB, free: 82.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001887/1.719, allocations: 1.135 MB / 0.6839 GB, free: 82.33 MB / 426.7 MB Notification: Performance of SimCode: time 1.332e-06/1.719, allocations: 0 / 0.6839 GB, free: 82.33 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.506/5.225, allocations: 56.3 MB / 0.7388 GB, free: 57.5 MB / 426.7 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