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.001075/0.001075, allocations: 197.4 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.184/1.184, allocations: 227.2 MB / 245 MB, free: 5.789 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008525/0.0008523, allocations: 107.4 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000195/0.000195, allocations: 4 kB / 358 MB, free: 9.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.1705, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08069/0.2512, allocations: 78.9 MB / 488.4 MB, free: 11.7 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001789/0.2514, allocations: 68.47 kB / 488.5 MB, free: 11.63 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008369/0.2598, allocations: 2.973 MB / 491.4 MB, free: 8.66 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2598, allocations: 0 / 491.4 MB, free: 8.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.655e-05/0.2599, allocations: 4 kB / 491.4 MB, free: 8.656 MB / 362.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.0007396/0.2606, allocations: 0.5003 MB / 491.9 MB, free: 8.102 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.2607, allocations: 8.031 kB / 491.9 MB, free: 8.094 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.929e-05/0.2607, allocations: 54.48 kB / 492 MB, free: 8.031 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001436/0.2609, allocations: 27.8 kB / 492 MB, free: 8.004 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002667/0.2612, allocations: 242.6 kB / 492.3 MB, free: 7.727 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.2612, allocations: 15.94 kB / 492.3 MB, free: 7.711 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.714e-05/0.2612, allocations: 23.94 kB / 492.3 MB, free: 7.688 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003631/0.2616, allocations: 197.6 kB / 492.5 MB, free: 7.473 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.2616, allocations: 0 / 492.5 MB, free: 7.473 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.2616, allocations: 19.92 kB / 492.5 MB, free: 7.453 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/0.2617, allocations: 8 kB / 492.5 MB, free: 7.445 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003126/0.262, allocations: 147.7 kB / 492.7 MB, free: 7.301 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.2631, allocations: 0.8012 MB / 493.5 MB, free: 6.438 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005719/0.2636, allocations: 210.6 kB / 493.7 MB, free: 6.223 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.344e-05/0.2637, allocations: 4 kB / 493.7 MB, free: 6.219 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002448/0.2639, allocations: 145 kB / 493.8 MB, free: 6.059 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/0.264, allocations: 0 / 493.8 MB, free: 6.059 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005408/0.2645, allocations: 253.3 kB / 494.1 MB, free: 5.805 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.2646, allocations: 81.11 kB / 494.1 MB, free: 5.707 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.2647, allocations: 202 kB / 494.3 MB, free: 5.504 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.2648, allocations: 25.7 kB / 494.4 MB, free: 5.473 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.247e-05/0.2648, allocations: 144.5 kB / 494.5 MB, free: 5.328 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.892e-05/0.2649, allocations: 27.56 kB / 494.5 MB, free: 5.301 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.073e-05/0.2649, allocations: 8 kB / 494.5 MB, free: 5.293 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.631e-05/0.265, allocations: 334.8 kB / 494.9 MB, free: 4.957 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.2651, allocations: 67.95 kB / 494.9 MB, free: 4.891 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.2653, allocations: 140.5 kB / 495.1 MB, free: 4.723 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001607/0.2655, allocations: 83.97 kB / 495.2 MB, free: 4.641 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2655, allocations: 0 / 495.2 MB, free: 4.641 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004245/0.2659, allocations: 257.4 kB / 495.4 MB, free: 4.383 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.266, allocations: 8 kB / 495.4 MB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.266, allocations: 0 / 495.4 MB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.266, allocations: 4 kB / 495.4 MB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001793/0.2662, allocations: 47.91 kB / 495.5 MB, free: 4.324 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.2662, allocations: 3.938 kB / 495.5 MB, free: 4.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001716/0.2664, allocations: 40.08 kB / 495.5 MB, free: 4.281 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.2664, allocations: 8 kB / 495.5 MB, free: 4.273 MB / 362.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 () * 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.0001212/0.2665, allocations: 152 kB / 495.7 MB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.764e-05/0.2666, allocations: 15.81 kB / 495.7 MB, free: 4.102 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002289/0.2668, allocations: 135.3 kB / 495.8 MB, free: 3.965 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.2668, allocations: 3.984 kB / 495.8 MB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.2668, allocations: 8 kB / 495.8 MB, free: 3.953 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2668, allocations: 3.984 kB / 495.8 MB, free: 3.949 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005446/0.2674, allocations: 482.2 kB / 496.3 MB, free: 3.422 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2674, allocations: 0 / 496.3 MB, free: 3.422 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.2675, allocations: 19.98 kB / 496.3 MB, free: 3.402 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.105e-06/0.2675, allocations: 4 kB / 496.3 MB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.2676, allocations: 8 kB / 496.3 MB, free: 3.391 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.2676, allocations: 3.984 kB / 496.3 MB, free: 3.387 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.2676, allocations: 4 kB / 496.3 MB, free: 3.383 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003895/0.268, allocations: 308.8 kB / 496.6 MB, free: 3.059 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.698e-05/0.268, allocations: 92.92 kB / 496.7 MB, free: 2.949 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.795e-05/0.2681, allocations: 4 kB / 496.7 MB, free: 2.945 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.2682, allocations: 23.97 kB / 496.8 MB, free: 2.922 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.449e-05/0.2683, allocations: 19.97 kB / 496.8 MB, free: 2.902 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.2683, allocations: 4 kB / 496.8 MB, free: 2.898 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001051/0.2684, allocations: 152.4 kB / 496.9 MB, free: 2.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2685, allocations: 0 / 496.9 MB, free: 2.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002929/0.2688, allocations: 51.78 kB / 497 MB, free: 2.699 MB / 362.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) * 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.0006811/0.2694, allocations: 0.9279 MB / 497.9 MB, free: 1.738 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003568/0.2698, allocations: 172.3 kB / 498.1 MB, free: 1.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.2698, allocations: 0 / 498.1 MB, free: 1.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.27, allocations: 84.08 kB / 498.2 MB, free: 1.488 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002504/0.2703, allocations: 36.88 kB / 498.2 MB, free: 1.453 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00204/0.2723, allocations: 2.532 MB / 0.489 GB, free: 14.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.2726, allocations: 0.7403 MB / 0.4897 GB, free: 14.05 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001069/0.2727, allocations: 41.52 kB / 0.4897 GB, free: 14.01 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.899e-05/0.2728, allocations: 59.42 kB / 0.4898 GB, free: 13.95 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.2728, allocations: 0 / 0.4898 GB, free: 13.95 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01383/0.2866, allocations: 3.586 MB / 0.4933 GB, free: 10.48 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.2868, allocations: 164.8 kB / 0.4935 GB, free: 10.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.605/1.891, allocations: 0 / 0.4935 GB, free: 10.25 MB / 378.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