Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.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.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",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.001775/0.001775, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.459/1.459, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007647/0.0007646, allocations: 88.09 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.811e-05/1.815e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08477/0.0848, allocations: 47.59 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2866/0.3714, allocations: 76.78 MB / 439.9 MB, free: 2.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001665/0.3716, allocations: 67.16 kB / 440 MB, free: 2.809 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007791/0.3794, allocations: 2.779 MB / 442.8 MB, free: 468 kB / 314.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.3794, allocations: 0 / 442.8 MB, free: 468 kB / 314.7 MB Notification: Performance of Transformations before backend: time 1.321e-05/0.3795, allocations: 4 kB / 442.8 MB, free: 464 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0006763/0.3801, allocations: 497.6 kB / 443.3 MB, free: 15.94 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.3802, allocations: 8.031 kB / 443.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.93e-05/0.3802, allocations: 23.72 kB / 443.3 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002443/0.3805, allocations: 225.3 kB / 443.5 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.3805, allocations: 4 kB / 443.5 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.638e-05/0.3805, allocations: 11.95 kB / 443.5 MB, free: 15.64 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002046/0.3808, allocations: 108.1 kB / 443.6 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002482/0.381, allocations: 178.4 kB / 443.8 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.381, allocations: 0 / 443.8 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.381, allocations: 0 / 443.8 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.3811, allocations: 8 kB / 443.8 MB, free: 15.4 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009911/0.3821, allocations: 0.7693 MB / 444.6 MB, free: 14.64 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005075/0.3826, allocations: 183 kB / 444.8 MB, free: 14.49 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.819e-05/0.3827, allocations: 46.72 kB / 444.8 MB, free: 14.45 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.655e-05/0.3827, allocations: 4 kB / 444.8 MB, free: 14.45 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002022/0.3829, allocations: 132.9 kB / 445 MB, free: 14.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.3829, allocations: 4 kB / 445 MB, free: 14.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003105/0.3833, allocations: 151 kB / 445.1 MB, free: 14.19 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.3833, allocations: 84.91 kB / 445.2 MB, free: 14.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001546/0.3835, allocations: 186.4 kB / 445.4 MB, free: 13.93 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.3835, allocations: 29.8 kB / 445.4 MB, free: 13.89 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.178e-05/0.3836, allocations: 140.1 kB / 445.5 MB, free: 13.77 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.3e-05/0.3837, allocations: 33.42 kB / 445.6 MB, free: 13.74 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.032e-05/0.3837, allocations: 0 / 445.6 MB, free: 13.74 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.3838, allocations: 326.1 kB / 445.9 MB, free: 13.42 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.122e-05/0.3839, allocations: 49.73 kB / 445.9 MB, free: 13.39 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.384, allocations: 122.2 kB / 446.1 MB, free: 13.26 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001141/0.3841, allocations: 69.84 kB / 446.1 MB, free: 13.21 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3841, allocations: 0 / 446.1 MB, free: 13.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002871/0.3844, allocations: 208.1 kB / 446.3 MB, free: 13.03 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.3845, allocations: 4 kB / 446.3 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.3845, allocations: 4.125 kB / 446.3 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.3845, allocations: 8 kB / 446.3 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.3847, allocations: 39.23 kB / 446.4 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.3847, allocations: 11.97 kB / 446.4 MB, free: 12.97 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.3849, allocations: 32.08 kB / 446.4 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.628e-05/0.3849, allocations: 11.81 kB / 446.4 MB, free: 12.93 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001079/0.385, allocations: 119.2 kB / 446.6 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00024/0.3852, allocations: 160.5 kB / 446.7 MB, free: 12.67 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.342e-05/0.3853, allocations: 15.81 kB / 446.7 MB, free: 12.65 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002097/0.3855, allocations: 122.8 kB / 446.8 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.3855, allocations: 7.984 kB / 446.9 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3855, allocations: 0 / 446.9 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3855, allocations: 0 / 446.9 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000506/0.386, allocations: 441.8 kB / 447.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3861, allocations: 0 / 447.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001275/0.3862, allocations: 28.02 kB / 447.3 MB, free: 12.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.3862, allocations: 3.938 kB / 447.3 MB, free: 12.09 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.3862, allocations: 0 / 447.3 MB, free: 12.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.3862, allocations: 7.984 kB / 447.3 MB, free: 12.08 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3862, allocations: 0 / 447.3 MB, free: 12.08 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002721/0.3865, allocations: 260 kB / 447.6 MB, free: 11.83 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.057e-05/0.3866, allocations: 100.4 kB / 447.7 MB, free: 11.72 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.915e-05/0.3866, allocations: 4 kB / 447.7 MB, free: 11.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.3868, allocations: 23.97 kB / 447.7 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.127e-05/0.3869, allocations: 23.47 kB / 447.7 MB, free: 11.67 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.3869, allocations: 4 kB / 447.7 MB, free: 11.67 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.032e-05/0.387, allocations: 130.7 kB / 447.9 MB, free: 11.56 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.387, allocations: 0 / 447.9 MB, free: 11.56 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002853/0.3873, allocations: 47.8 kB / 447.9 MB, free: 11.51 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006391/0.3879, allocations: 0.8861 MB / 448.8 MB, free: 10.62 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002235/0.3882, allocations: 136.8 kB / 448.9 MB, free: 10.52 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3882, allocations: 7.938 kB / 448.9 MB, free: 10.51 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.3883, allocations: 59.48 kB / 449 MB, free: 10.47 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002483/0.3885, allocations: 29.34 kB / 449 MB, free: 10.45 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006585/0.3892, allocations: 291.8 kB / 449.3 MB, free: 10.14 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.3896, allocations: 0.7399 MB / 450 MB, free: 9.375 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.867e-05/0.3897, allocations: 29.84 kB / 450.1 MB, free: 9.348 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.852e-05/0.3898, allocations: 71.16 kB / 450.1 MB, free: 9.316 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3898, allocations: 0 / 450.1 MB, free: 9.316 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02148/0.4113, allocations: 3.135 MB / 453.3 MB, free: 6.191 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002418/0.4116, allocations: 122.5 kB / 453.4 MB, free: 6.004 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.685/2.096, allocations: 4.031 kB / 453.4 MB, free: 6 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat