Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_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.0008884/0.0008885, allocations: 174 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.251/1.251, allocations: 205.4 MB / 222.9 MB, free: 8.926 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.0006945/0.0006946, allocations: 90.41 kB / 271.2 MB, free: 8.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000304/0.0003042, allocations: 11.98 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2146/0.2149, allocations: 47.57 MB / 375.2 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002/0.2169, allocations: 1.483 MB / 376.7 MB, free: 44.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.2181, allocations: 0.6303 MB / 377.3 MB, free: 43.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.2183, allocations: 2.25 kB / 377.3 MB, free: 43.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001455/0.2184, allocations: 18.3 kB / 377.3 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.2186, allocations: 27.75 kB / 377.3 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003072/0.2189, allocations: 68.2 kB / 377.4 MB, free: 43.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002229/0.2192, allocations: 157.3 kB / 377.6 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001739/0.2194, allocations: 71.73 kB / 377.6 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.2195, allocations: 62.44 kB / 377.7 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.2196, allocations: 62.75 kB / 377.7 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.888e-05/0.2197, allocations: 5.469 kB / 377.8 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.661e-05/0.2197, allocations: 16.05 kB / 377.8 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.88e-05/0.2198, allocations: 34.25 kB / 377.8 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.842e-05/0.2199, allocations: 95.23 kB / 377.9 MB, free: 43.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001488/0.22, allocations: 117.7 kB / 378 MB, free: 43.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.22, allocations: 0 / 378 MB, free: 43.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2201, allocations: 1.312 kB / 378 MB, free: 43.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.2201, allocations: 0 / 378 MB, free: 43.23 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0007574/0.2208, allocations: 489.9 kB / 378.5 MB, free: 42.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.2209, allocations: 13.53 kB / 378.5 MB, free: 42.77 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.967e-05/0.2209, allocations: 52.67 kB / 378.6 MB, free: 42.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.412e-05/0.221, allocations: 22.59 kB / 378.6 MB, free: 42.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000221/0.2212, allocations: 245.1 kB / 378.8 MB, free: 42.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.275e-05/0.2212, allocations: 12.38 kB / 378.8 MB, free: 42.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.069e-05/0.2213, allocations: 18.47 kB / 378.8 MB, free: 42.44 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003844/0.2217, allocations: 215.2 kB / 379.1 MB, free: 42.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.2217, allocations: 5.219 kB / 379.1 MB, free: 42.28 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.166e-05/0.2217, allocations: 9.188 kB / 379.1 MB, free: 42.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.475e-05/0.2217, allocations: 9.062 kB / 379.1 MB, free: 42.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003259/0.2221, allocations: 147.1 kB / 379.2 MB, free: 42.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009222/0.223, allocations: 0.7971 MB / 380 MB, free: 41.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006132/0.2236, allocations: 207.9 kB / 380.2 MB, free: 41.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/0.2238, allocations: 63.08 kB / 380.3 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.689e-05/0.2238, allocations: 11.58 kB / 380.3 MB, free: 41.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002576/0.2241, allocations: 146 kB / 380.4 MB, free: 41.24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.2241, allocations: 4 kB / 380.4 MB, free: 41.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005614/0.2247, allocations: 254.3 kB / 380.7 MB, free: 41.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.2247, allocations: 84.23 kB / 380.8 MB, free: 41.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/0.2249, allocations: 228.2 kB / 381 MB, free: 40.83 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/0.2249, allocations: 32.14 kB / 381 MB, free: 40.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.635e-05/0.225, allocations: 142.2 kB / 381.2 MB, free: 40.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.65e-05/0.225, allocations: 29.61 kB / 381.2 MB, free: 40.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.282e-05/0.225, allocations: 5.5 kB / 381.2 MB, free: 40.64 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.464e-05/0.2251, allocations: 335.2 kB / 381.5 MB, free: 40.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.2253, allocations: 69.33 kB / 381.6 MB, free: 40.28 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.2254, allocations: 135 kB / 381.7 MB, free: 40.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003037/0.2258, allocations: 218.4 kB / 381.9 MB, free: 40.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2258, allocations: 1.281 kB / 381.9 MB, free: 40.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004084/0.2262, allocations: 262.9 kB / 382.2 MB, free: 39.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.2262, allocations: 6.844 kB / 382.2 MB, free: 39.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2262, allocations: 2.938 kB / 382.2 MB, free: 39.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.2262, allocations: 2.906 kB / 382.2 MB, free: 39.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001671/0.2264, allocations: 45.22 kB / 382.3 MB, free: 39.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.2264, allocations: 8.031 kB / 382.3 MB, free: 39.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001721/0.2266, allocations: 50.53 kB / 382.3 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.799e-05/0.2266, allocations: 7.656 kB / 382.3 MB, free: 39.82 MB / 298.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.0001047/0.2267, allocations: 144 kB / 382.5 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.757e-05/0.2268, allocations: 21.12 kB / 382.5 MB, free: 39.67 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002225/0.227, allocations: 134.6 kB / 382.6 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.227, allocations: 1.406 kB / 382.6 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.227, allocations: 0 / 382.6 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.227, allocations: 12.98 kB / 382.6 MB, free: 39.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004856/0.2275, allocations: 473.4 kB / 383.1 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.654e-06/0.2275, allocations: 1.375 kB / 383.1 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.2277, allocations: 22.23 kB / 383.1 MB, free: 39.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.2277, allocations: 1.188 kB / 383.1 MB, free: 39.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.2277, allocations: 10.92 kB / 383.1 MB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.2277, allocations: 5.219 kB / 383.1 MB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.2277, allocations: 320 / 383.1 MB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003661/0.2281, allocations: 294.9 kB / 383.4 MB, free: 38.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.33e-05/0.2281, allocations: 101.5 kB / 383.5 MB, free: 38.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.935e-05/0.2282, allocations: 13.72 kB / 383.5 MB, free: 38.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.2283, allocations: 23.59 kB / 383.6 MB, free: 38.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.368e-05/0.2284, allocations: 24 kB / 383.6 MB, free: 38.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.2284, allocations: 5.188 kB / 383.6 MB, free: 38.78 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.697e-05/0.2285, allocations: 150.1 kB / 383.7 MB, free: 38.67 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2286, allocations: 4.969 kB / 383.7 MB, free: 38.66 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002757/0.2288, allocations: 39.56 kB / 383.8 MB, free: 38.66 MB / 298.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.0005941/0.2294, allocations: 0.8394 MB / 384.6 MB, free: 37.9 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000367/0.2298, allocations: 176.5 kB / 384.8 MB, free: 37.83 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2298, allocations: 0.5 kB / 384.8 MB, free: 37.83 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001679/0.23, allocations: 84.61 kB / 384.9 MB, free: 37.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003311/0.2303, allocations: 32.12 kB / 384.9 MB, free: 37.78 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.232, allocations: 1.194 MB / 386.1 MB, free: 36.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001603/0.2322, allocations: 0.7318 MB / 386.8 MB, free: 36.19 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.2323, allocations: 66.34 kB / 386.9 MB, free: 36.14 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2323, allocations: 0 / 386.9 MB, free: 36.14 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.772/3.004, allocations: 2.834 MB / 389.7 MB, free: 33.56 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,multiSwitch1.y,triggeredAdd.y Variables in the result:booleanPulse1.Twidth,booleanPulse1.period,booleanPulse1.pulseStart,booleanPulse1.startTime,booleanPulse1.width,booleanPulse1.y,booleanPulse2.Twidth,booleanPulse2.period,booleanPulse2.pulseStart,booleanPulse2.startTime,booleanPulse2.width,booleanPulse2.y,integerConstant.k,integerConstant.y,integerStep.height,integerStep.offset,integerStep.startTime,integerStep.y,multiSwitch1.expr[1],multiSwitch1.expr[2],multiSwitch1.firstActiveIndex,multiSwitch1.nu,multiSwitch1.u[1],multiSwitch1.u[2],multiSwitch1.use_pre_as_default,multiSwitch1.y,multiSwitch1.y_default,product.nu,product.u[1],product.u[2],product.y,realToInteger.u,realToInteger.y,showValue.number,showValue.numberPort,showValue.showNumber,showValue.use_numberPort,showValue1.number,showValue1.numberPort,showValue1.showNumber,showValue1.use_numberPort,showValue2.number,showValue2.numberPort,showValue2.showNumber,showValue2.use_numberPort,showValue3.number,showValue3.showNumber,showValue3.use_numberPort,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,sum.k[1],sum.k[2],sum.k[3],sum.nu,sum.u[1],sum.u[2],sum.u[3],sum.y,time,triggeredAdd.local_reset,triggeredAdd.local_set,triggeredAdd.trigger,triggeredAdd.u,triggeredAdd.use_reset,triggeredAdd.use_set,triggeredAdd.y,triggeredAdd.y_start