Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001027/0.001027, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 225.6 MB / 234.8 MB, free: 3.234 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008844/0.0008844, allocations: 91.03 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.416e-05/2.42e-05, allocations: 4 kB / 343.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09666/0.0967, allocations: 51.48 MB / 395.3 MB, free: 4.656 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3807/0.4775, allocations: 78.16 MB / 473.4 MB, free: 13.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002141/0.4778, allocations: 63.86 kB / 473.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008385/0.4862, allocations: 2.945 MB / 476.4 MB, free: 11.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.4862, allocations: 0 / 476.4 MB, free: 11.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.4862, allocations: 12 kB / 476.4 MB, free: 11.48 MB / 346.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.0006044/0.4868, allocations: 471.7 kB / 476.9 MB, free: 11.03 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.4869, allocations: 12.03 kB / 476.9 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.487, allocations: 34.86 kB / 476.9 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002182/0.4872, allocations: 232.3 kB / 477.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.157e-05/0.4873, allocations: 10.08 kB / 477.2 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.4873, allocations: 8 kB / 477.2 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001995/0.4875, allocations: 119.7 kB / 477.3 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002465/0.4878, allocations: 163.7 kB / 477.5 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.4878, allocations: 4 kB / 477.5 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.973e-05/0.4878, allocations: 9.328 kB / 477.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/0.4878, allocations: 4 kB / 477.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000921/0.4888, allocations: 0.7582 MB / 478.2 MB, free: 9.867 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004819/0.4893, allocations: 189.1 kB / 478.4 MB, free: 9.734 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.061e-05/0.4893, allocations: 53.5 kB / 478.5 MB, free: 9.699 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.056e-05/0.4894, allocations: 5.406 kB / 478.5 MB, free: 9.695 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001613/0.4895, allocations: 125.6 kB / 478.6 MB, free: 9.598 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.4896, allocations: 4 kB / 478.6 MB, free: 9.594 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002781/0.4898, allocations: 153.8 kB / 478.8 MB, free: 9.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.499e-05/0.4899, allocations: 82.56 kB / 478.8 MB, free: 9.383 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001285/0.49, allocations: 185.7 kB / 479 MB, free: 9.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.49, allocations: 27.2 kB / 479 MB, free: 9.199 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.984e-05/0.4901, allocations: 144.6 kB / 479.2 MB, free: 9.082 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.741e-05/0.4901, allocations: 39.64 kB / 479.2 MB, free: 9.051 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.022e-05/0.4902, allocations: 0 / 479.2 MB, free: 9.051 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.653e-05/0.4902, allocations: 333.5 kB / 479.5 MB, free: 8.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.707e-05/0.4903, allocations: 49.62 kB / 479.6 MB, free: 8.703 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.4904, allocations: 114.8 kB / 479.7 MB, free: 8.59 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001077/0.4905, allocations: 69.05 kB / 479.8 MB, free: 8.551 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.4905, allocations: 4 kB / 479.8 MB, free: 8.547 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002702/0.4908, allocations: 194.9 kB / 480 MB, free: 8.402 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.4908, allocations: 12.03 kB / 480 MB, free: 8.391 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.4909, allocations: 0 / 480 MB, free: 8.391 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.4909, allocations: 4 kB / 480 MB, free: 8.387 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.4911, allocations: 49.22 kB / 480 MB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.4911, allocations: 5.641 kB / 480 MB, free: 8.344 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001586/0.4912, allocations: 26.05 kB / 480.1 MB, free: 8.324 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/0.4913, allocations: 12 kB / 480.1 MB, free: 8.312 MB / 346.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 7.312e-05/0.4913, allocations: 120.2 kB / 480.2 MB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000212/0.4916, allocations: 155 kB / 480.3 MB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.106e-05/0.4916, allocations: 15.81 kB / 480.4 MB, free: 8.059 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001983/0.4918, allocations: 125.6 kB / 480.5 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.4918, allocations: 4 kB / 480.5 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.4918, allocations: 3.438 kB / 480.5 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.4918, allocations: 1.219 kB / 480.5 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000448/0.4923, allocations: 443.8 kB / 480.9 MB, free: 7.586 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.4923, allocations: 7.938 kB / 480.9 MB, free: 7.578 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.4924, allocations: 19.3 kB / 481 MB, free: 7.566 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.4924, allocations: 4 kB / 481 MB, free: 7.562 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.4924, allocations: 1.594 kB / 481 MB, free: 7.562 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.4925, allocations: 5.5 kB / 481 MB, free: 7.559 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.4925, allocations: 11.47 kB / 481 MB, free: 7.551 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000242/0.4927, allocations: 269.2 kB / 481.2 MB, free: 7.309 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.926e-05/0.4928, allocations: 88.92 kB / 481.3 MB, free: 7.203 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.298e-05/0.4928, allocations: 5.125 kB / 481.3 MB, free: 7.199 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.493, allocations: 21.48 kB / 481.4 MB, free: 7.184 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.179e-05/0.493, allocations: 22.64 kB / 481.4 MB, free: 7.176 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.4931, allocations: 11.23 kB / 481.4 MB, free: 7.168 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.136e-05/0.4932, allocations: 127.7 kB / 481.5 MB, free: 7.066 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4932, allocations: 0 / 481.5 MB, free: 7.066 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002946/0.4935, allocations: 52.66 kB / 481.6 MB, free: 7.02 MB / 346.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.0004549/0.4939, allocations: 0.8853 MB / 482.4 MB, free: 6.152 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002041/0.4941, allocations: 133 kB / 482.6 MB, free: 6.066 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.4941, allocations: 0.5 kB / 482.6 MB, free: 6.066 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.627e-05/0.4942, allocations: 68.98 kB / 482.6 MB, free: 6.02 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.4945, allocations: 31.73 kB / 482.7 MB, free: 6.004 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006214/0.4952, allocations: 283.7 kB / 483 MB, free: 5.742 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001603/0.4953, allocations: 0.7417 MB / 483.7 MB, free: 5 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001/0.4954, allocations: 32 kB / 483.7 MB, free: 4.98 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.092e-05/0.4955, allocations: 66.45 kB / 483.8 MB, free: 4.961 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4956, allocations: 0 / 483.8 MB, free: 4.961 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02223/0.5178, allocations: 3.138 MB / 486.9 MB, free: 2 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001611/0.518, allocations: 131.2 kB / 487.1 MB, free: 1.805 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.696/2.214, allocations: 0 / 487.1 MB, free: 1.805 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat