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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009256/0.0009256, allocations: 98.31 kB / 16.94 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008553/0.0008553, allocations: 189.8 kB / 17.83 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.339/1.339, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004481/0.0004482, allocations: 15.94 kB / 280.8 MB, free: 3.66 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0879/0.08835, allocations: 47.57 MB / 328.4 MB, free: 4.02 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001906/0.0903, allocations: 1.479 MB / 329.9 MB, free: 2.527 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.09136, allocations: 0.6246 MB / 330.5 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.0915, allocations: 4 kB / 330.5 MB, free: 1.891 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.708e-05/0.09161, allocations: 19.8 kB / 330.5 MB, free: 1.871 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001423/0.09176, allocations: 31.88 kB / 330.6 MB, free: 1.84 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002925/0.09206, allocations: 67.8 kB / 330.6 MB, free: 1.773 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002255/0.0923, allocations: 111.8 kB / 330.8 MB, free: 1.664 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.09247, allocations: 50.41 kB / 330.8 MB, free: 1.609 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001321/0.09261, allocations: 59.7 kB / 330.9 MB, free: 1.551 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001232/0.09274, allocations: 67.69 kB / 330.9 MB, free: 1.484 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.09277, allocations: 4 kB / 330.9 MB, free: 1.48 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.555e-05/0.09283, allocations: 12 kB / 330.9 MB, free: 1.469 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.959e-05/0.09289, allocations: 39.83 kB / 331 MB, free: 1.43 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.153e-05/0.09295, allocations: 49.58 kB / 331 MB, free: 1.375 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001505/0.09311, allocations: 116 kB / 331.1 MB, free: 1.262 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.09311, allocations: 0 / 331.1 MB, free: 1.262 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.09312, allocations: 0 / 331.1 MB, free: 1.262 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.09313, allocations: 0 / 331.1 MB, free: 1.262 MB / 270.1 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.0008297/0.09397, allocations: 498.5 kB / 331.6 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.09402, allocations: 12.02 kB / 331.6 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.758e-05/0.09409, allocations: 54.53 kB / 331.7 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.011e-05/0.09415, allocations: 19.72 kB / 331.7 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002842/0.09444, allocations: 238.7 kB / 331.9 MB, free: 368 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/0.09447, allocations: 8 kB / 332 MB, free: 360 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.651e-05/0.0945, allocations: 16 kB / 332 MB, free: 344 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003866/0.09489, allocations: 217 kB / 332.2 MB, free: 108 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.09491, allocations: 0 / 332.2 MB, free: 108 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.147e-05/0.09494, allocations: 8 kB / 332.2 MB, free: 100 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.01e-05/0.09497, allocations: 4 kB / 332.2 MB, free: 96 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003326/0.0953, allocations: 147.8 kB / 332.3 MB, free: 15.95 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.09635, allocations: 0.8049 MB / 333.1 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005899/0.09695, allocations: 210.6 kB / 333.3 MB, free: 14.87 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.801e-05/0.097, allocations: 4 kB / 333.4 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002577/0.09727, allocations: 149 kB / 333.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.293e-06/0.09728, allocations: 0 / 333.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005472/0.09783, allocations: 253.3 kB / 333.7 MB, free: 14.45 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.0979, allocations: 81.11 kB / 333.8 MB, free: 14.35 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001931/0.0981, allocations: 226.6 kB / 334 MB, free: 14.11 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.09813, allocations: 29.7 kB / 334.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.046e-05/0.09823, allocations: 148.4 kB / 334.2 MB, free: 13.93 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.3e-05/0.09827, allocations: 27.66 kB / 334.2 MB, free: 13.9 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.328e-05/0.09829, allocations: 8 kB / 334.3 MB, free: 13.89 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.09843, allocations: 334.8 kB / 334.6 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000149/0.09859, allocations: 71.95 kB / 334.7 MB, free: 13.49 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/0.09878, allocations: 136.5 kB / 334.8 MB, free: 13.32 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001566/0.09894, allocations: 83.97 kB / 334.9 MB, free: 13.24 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.09895, allocations: 0 / 334.9 MB, free: 13.24 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004081/0.09937, allocations: 265 kB / 335.1 MB, free: 12.98 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.09939, allocations: 4 kB / 335.1 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.09941, allocations: 4 kB / 335.1 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.377e-05/0.09943, allocations: 4.25 kB / 335.1 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.09961, allocations: 43.91 kB / 335.2 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.09963, allocations: 4.312 kB / 335.2 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001682/0.0998, allocations: 35.83 kB / 335.2 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.96e-05/0.09983, allocations: 16 kB / 335.2 MB, free: 12.87 MB / 286.1 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 () * Number of clocked 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.000126/0.09996, allocations: 152 kB / 335.4 MB, free: 12.71 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.988e-05/0.09999, allocations: 19.8 kB / 335.4 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002258/0.1002, allocations: 135.3 kB / 335.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.1002, allocations: 96 / 335.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1003, allocations: 3.938 kB / 335.5 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.1003, allocations: 7.984 kB / 335.5 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005488/0.1008, allocations: 482.3 kB / 336 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1008, allocations: 4 kB / 336 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.1009, allocations: 15.98 kB / 336 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.101, allocations: 4 kB / 336 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.101, allocations: 4 kB / 336 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.101, allocations: 11.86 kB / 336.1 MB, free: 11.97 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.101, allocations: 4 kB / 336.1 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003887/0.1014, allocations: 305.4 kB / 336.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.909e-05/0.1015, allocations: 96.86 kB / 336.5 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.975e-05/0.1015, allocations: 4 kB / 336.5 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001762/0.1017, allocations: 27.97 kB / 336.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.892e-05/0.1018, allocations: 23.92 kB / 336.5 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.1018, allocations: 4 kB / 336.5 MB, free: 11.47 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001054/0.1019, allocations: 148.4 kB / 336.7 MB, free: 11.33 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.553e-06/0.1019, allocations: 0 / 336.7 MB, free: 11.33 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003019/0.1022, allocations: 43.92 kB / 336.7 MB, free: 11.29 MB / 286.1 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) * Number of clocked states: 0 () * 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.0006883/0.1029, allocations: 0.9123 MB / 337.6 MB, free: 10.34 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003578/0.1033, allocations: 179.7 kB / 337.8 MB, free: 10.16 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1033, allocations: 0 / 337.8 MB, free: 10.16 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001837/0.1035, allocations: 88.39 kB / 337.9 MB, free: 10.08 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002531/0.1037, allocations: 36.44 kB / 337.9 MB, free: 10.04 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002048/0.1058, allocations: 2.524 MB / 340.4 MB, free: 7.434 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002657/0.1061, allocations: 0.7403 MB / 341.2 MB, free: 6.668 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.99e-05/0.1062, allocations: 29.78 kB / 341.2 MB, free: 6.637 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.91e-05/0.1063, allocations: 71.34 kB / 341.3 MB, free: 6.566 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1063, allocations: 0 / 341.3 MB, free: 6.566 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01473/0.121, allocations: 3.571 MB / 344.8 MB, free: 3.004 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001673/0.1212, allocations: 175.7 kB / 345 MB, free: 2.758 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.634/1.755, allocations: 0 / 345 MB, free: 2.758 MB / 286.1 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) Environment - environmentSimulation: 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