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.001642/0.001647, allocations: 188.5 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.167/2.167, allocations: 205.4 MB / 222.5 MB, free: 13.74 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.001152/0.001152, allocations: 86.88 kB / 270.9 MB, free: 13.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005221/0.0005223, allocations: 8 kB / 327 MB, free: 14.97 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1035, allocations: 47.59 MB / 374.6 MB, free: 15.3 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01636/0.1199, allocations: 10.73 MB / 385.4 MB, free: 4.531 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.2928/0.4128, allocations: 16.64 MB / 402 MB, free: 7.738 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002732/0.4156, allocations: 66.53 kB / 402.1 MB, free: 7.703 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004039/0.4197, allocations: 0.8571 MB / 402.9 MB, free: 7.5 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01013/0.4299, allocations: 2.035 MB / 405 MB, free: 6.422 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006806/0.4368, allocations: 1.138 MB / 406.1 MB, free: 5.793 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0168/0.4536, allocations: 5.98 MB / 412.1 MB, free: 3.098 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009544/0.4546, allocations: 408.8 kB / 412.5 MB, free: 2.898 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002036/0.4567, allocations: 0.7872 MB / 413.3 MB, free: 2.574 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002441/0.4592, allocations: 0.9384 MB / 414.2 MB, free: 2.152 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004269/0.4596, allocations: 38.78 kB / 414.2 MB, free: 2.152 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007094/0.4667, allocations: 1.202 MB / 415.4 MB, free: 1.957 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006476/0.4674, allocations: 263.3 kB / 415.7 MB, free: 1.758 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001315/0.4688, allocations: 0.603 MB / 416.3 MB, free: 1.391 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005177/0.474, allocations: 2.526 MB / 418.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.474, allocations: 0 / 418.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.597e-06/0.4741, allocations: 0 / 418.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001807/0.4743, allocations: 0 / 418.8 MB, free: 15.62 MB / 298.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.008683/0.483, allocations: 3.11 MB / 421.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/0.483, allocations: 10.09 kB / 422 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003344/0.4834, allocations: 91.73 kB / 422 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009463/0.4843, allocations: 377.6 kB / 422.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006895/0.4912, allocations: 2.368 MB / 424.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.449e-05/0.4914, allocations: 33 kB / 424.8 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002104/0.4916, allocations: 51.91 kB / 424.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002274/0.4939, allocations: 0.7187 MB / 425.6 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.4939, allocations: 0 / 425.6 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001102/0.494, allocations: 20 kB / 425.6 MB, free: 9.754 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.276e-05/0.4941, allocations: 19.98 kB / 425.6 MB, free: 9.734 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00275/0.4968, allocations: 0.8319 MB / 426.5 MB, free: 8.898 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008363/0.5052, allocations: 2.888 MB / 429.3 MB, free: 5.945 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002321/0.5076, allocations: 0.7405 MB / 430.1 MB, free: 5.176 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04887/0.5565, allocations: 30.31 MB / 460.4 MB, free: 2.758 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001294/0.5579, allocations: 382.4 kB / 460.8 MB, free: 2.375 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 4.168e-06/0.5579, allocations: 0 / 460.8 MB, free: 2.375 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.005831/0.5637, allocations: 1.439 MB / 462.2 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.066e-05/0.5639, allocations: 63.36 kB / 462.3 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005759/0.5696, allocations: 2.785 MB / 465.1 MB, free: 14.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001766/0.5699, allocations: 45.62 kB / 465.1 MB, free: 13.97 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00153/0.5714, allocations: 1.142 MB / 466.2 MB, free: 12.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002882/0.5717, allocations: 165.7 kB / 466.4 MB, free: 12.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.398e-05/0.5718, allocations: 12 kB / 466.4 MB, free: 12.65 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002164/0.572, allocations: 350.7 kB / 466.8 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.5731, allocations: 257.9 kB / 467 MB, free: 12.05 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001359/0.5745, allocations: 0.6086 MB / 467.6 MB, free: 11.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/0.5757, allocations: 340.1 kB / 467.9 MB, free: 10.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.231e-05/0.5758, allocations: 4 kB / 468 MB, free: 10.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00332/0.5791, allocations: 1.013 MB / 469 MB, free: 9.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.794e-05/0.5791, allocations: 11.98 kB / 469 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001904/0.5793, allocations: 84.84 kB / 469.1 MB, free: 9.816 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009567/0.5803, allocations: 272.8 kB / 469.3 MB, free: 9.547 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/0.5814, allocations: 183.7 kB / 469.5 MB, free: 9.367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001656/0.5831, allocations: 0.8811 MB / 470.4 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00201/0.5851, allocations: 126.9 kB / 470.5 MB, free: 8.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001998/0.5853, allocations: 64 kB / 470.6 MB, free: 8.277 MB / 346.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.001261/0.5866, allocations: 422.3 kB / 471 MB, free: 7.855 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000949/0.5876, allocations: 367.6 kB / 471.3 MB, free: 7.492 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005769/0.5934, allocations: 1.337 MB / 472.7 MB, free: 6.141 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.408e-05/0.5934, allocations: 4 kB / 472.7 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.5934, allocations: 4 kB / 472.7 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.5935, allocations: 7.922 kB / 472.7 MB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006473/0.6, allocations: 2.221 MB / 474.9 MB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000173/0.6002, allocations: 71.98 kB / 475 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000588/0.6008, allocations: 80 kB / 475.1 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000812/0.6016, allocations: 252.8 kB / 475.3 MB, free: 3.422 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.579e-05/0.6018, allocations: 35.98 kB / 475.3 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001469/0.6032, allocations: 0.8646 MB / 476.2 MB, free: 2.496 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/0.6033, allocations: 4.031 kB / 476.2 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003581/0.6069, allocations: 1.278 MB / 477.5 MB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00125/0.6081, allocations: 456.4 kB / 477.9 MB, free: 0.668 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004904/0.6087, allocations: 23.94 kB / 478 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.6099, allocations: 35.97 kB / 478 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002693/0.6102, allocations: 59.94 kB / 478.1 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.6103, allocations: 43.98 kB / 478.1 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004311/0.6146, allocations: 1.801 MB / 479.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.6147, allocations: 0 / 479.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002417/0.6171, allocations: 0.5661 MB / 480.5 MB, free: 14.14 MB / 362.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.005814/0.623, allocations: 2.691 MB / 483.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003246/0.6263, allocations: 0.8965 MB / 484.1 MB, free: 10.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.6263, allocations: 0 / 484.1 MB, free: 10.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001661/0.628, allocations: 0.5008 MB / 484.6 MB, free: 9.938 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002911/0.6309, allocations: 489.6 kB / 485 MB, free: 9.453 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0624/0.6934, allocations: 25.25 MB / 0.4983 GB, free: 14.31 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001947/0.6954, allocations: 1.671 MB / 0.5 GB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002323/0.6977, allocations: 1.136 MB / 0.5011 GB, free: 11.48 MB / 394.7 MB Notification: Performance of SimCode: time 2.114e-06/0.6978, allocations: 0 / 0.5011 GB, free: 11.48 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.923/4.621, allocations: 57.52 MB / 0.5572 GB, free: 149.7 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