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.001004/0.001004, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.0009663/0.0009663, allocations: 192 kB / 18.51 MB, free: 4.508 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.225/1.225, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001128/0.001128, allocations: 55.91 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07006/0.0712, allocations: 46.64 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002719/0.07396, allocations: 1.805 MB / 329.2 MB, free: 2.562 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009463/0.07492, allocations: 0.6756 MB / 329.9 MB, free: 1.879 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.436e-05/0.075, allocations: 0 / 329.9 MB, free: 1.879 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001306/0.07515, allocations: 27.67 kB / 329.9 MB, free: 1.852 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001054/0.07526, allocations: 35.66 kB / 329.9 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002383/0.07551, allocations: 75.84 kB / 330 MB, free: 1.742 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002257/0.07574, allocations: 179.4 kB / 330.2 MB, free: 1.566 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.0759, allocations: 70.64 kB / 330.2 MB, free: 1.496 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.07601, allocations: 79.58 kB / 330.3 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001217/0.07614, allocations: 91.59 kB / 330.4 MB, free: 1.328 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.888e-05/0.07617, allocations: 20 kB / 330.4 MB, free: 1.309 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.083e-05/0.07624, allocations: 16 kB / 330.4 MB, free: 1.293 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.216e-05/0.07631, allocations: 43.84 kB / 330.5 MB, free: 1.25 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.132e-05/0.0764, allocations: 91.45 kB / 330.6 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001927/0.07659, allocations: 183.5 kB / 330.8 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.07661, allocations: 4 kB / 330.8 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.07661, allocations: 0 / 330.8 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.07662, allocations: 0 / 330.8 MB, free: 0.9766 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.0007616/0.07739, allocations: 0.5025 MB / 331.3 MB, free: 436 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.09e-05/0.07743, allocations: 12.03 kB / 331.3 MB, free: 424 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.536e-05/0.07748, allocations: 50.73 kB / 331.3 MB, free: 364 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.625e-05/0.07753, allocations: 24.66 kB / 331.3 MB, free: 340 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002191/0.07775, allocations: 243.8 kB / 331.6 MB, free: 56 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.07778, allocations: 16.38 kB / 331.6 MB, free: 40 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.269e-05/0.07781, allocations: 16.38 kB / 331.6 MB, free: 24 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003502/0.07816, allocations: 213.3 kB / 331.8 MB, free: 15.79 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/0.07818, allocations: 0 / 331.8 MB, free: 15.79 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.069e-05/0.07821, allocations: 11.94 kB / 331.8 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.942e-05/0.07824, allocations: 15.92 kB / 331.8 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000291/0.07853, allocations: 135.8 kB / 332 MB, free: 15.63 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009371/0.07948, allocations: 0.7854 MB / 332.8 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005771/0.08007, allocations: 186.6 kB / 332.9 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001349/0.08021, allocations: 64.81 kB / 333 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.08025, allocations: 7.984 kB / 333 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002353/0.08049, allocations: 148.9 kB / 333.2 MB, free: 14.36 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 2.655e-06/0.08051, allocations: 3.984 kB / 333.2 MB, free: 14.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005267/0.08104, allocations: 241.3 kB / 333.4 MB, free: 14.11 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.08109, allocations: 85.11 kB / 333.5 MB, free: 14.01 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.08127, allocations: 222.6 kB / 333.7 MB, free: 13.78 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.232e-05/0.0813, allocations: 30.08 kB / 333.7 MB, free: 13.75 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.309e-05/0.08139, allocations: 144.3 kB / 333.9 MB, free: 13.6 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.153e-05/0.08143, allocations: 35.55 kB / 333.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.214e-05/0.08151, allocations: 57.69 kB / 334 MB, free: 13.5 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.08162, allocations: 338.7 kB / 334.3 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.08178, allocations: 71.95 kB / 334.4 MB, free: 13.09 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.08197, allocations: 128.5 kB / 334.5 MB, free: 12.94 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.08229, allocations: 212.4 kB / 334.7 MB, free: 12.7 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.0823, allocations: 256 / 334.7 MB, free: 12.7 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004126/0.08272, allocations: 253.1 kB / 334.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.08274, allocations: 8 kB / 335 MB, free: 12.44 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.08275, allocations: 4 kB / 335 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/0.08277, allocations: 4.25 kB / 335 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.08294, allocations: 43.91 kB / 335 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.08295, allocations: 4 kB / 335 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001648/0.08312, allocations: 35.77 kB / 335 MB, free: 12.35 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.08315, allocations: 7.984 kB / 335.1 MB, free: 12.34 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 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001151/0.08327, allocations: 144 kB / 335.2 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.821e-05/0.0833, allocations: 15.81 kB / 335.2 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002245/0.08353, allocations: 139 kB / 335.3 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.08355, allocations: 0 / 335.3 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.08355, allocations: 0 / 335.3 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.08357, allocations: 11.92 kB / 335.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005201/0.08409, allocations: 482.2 kB / 335.8 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.0841, allocations: 0 / 335.8 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.08422, allocations: 15.98 kB / 335.8 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.08423, allocations: 4 kB / 335.8 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.08426, allocations: 11.92 kB / 335.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.08426, allocations: 0 / 335.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.08427, allocations: 0 / 335.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000373/0.08464, allocations: 293.3 kB / 336.1 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.952e-05/0.0847, allocations: 93.02 kB / 336.2 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.08474, allocations: 11.94 kB / 336.2 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001672/0.08492, allocations: 23.91 kB / 336.3 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.5e-05/0.08499, allocations: 23.97 kB / 336.3 MB, free: 10.99 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.08501, allocations: 4 kB / 336.3 MB, free: 10.98 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001058/0.08512, allocations: 148.4 kB / 336.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.08513, allocations: 3.938 kB / 336.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002796/0.08542, allocations: 39.94 kB / 336.5 MB, free: 10.8 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006579/0.08608, allocations: 0.834 MB / 337.3 MB, free: 9.934 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003722/0.08646, allocations: 180.8 kB / 337.5 MB, free: 9.758 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.08648, allocations: 0 / 337.5 MB, free: 9.758 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001725/0.08665, allocations: 75.89 kB / 337.6 MB, free: 9.684 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.08699, allocations: 39.86 kB / 337.6 MB, free: 9.645 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002273/0.08927, allocations: 2.215 MB / 339.8 MB, free: 7.285 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.08952, allocations: 0.728 MB / 340.6 MB, free: 6.531 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.457e-05/0.08962, allocations: 41.5 kB / 340.6 MB, free: 6.492 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.08973, allocations: 67.59 kB / 340.7 MB, free: 6.426 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.08974, allocations: 0 / 340.7 MB, free: 6.426 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2809/0.3707, allocations: 4.026 MB / 344.7 MB, free: 2.344 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/13, allocations: 4.156 kB / 344.7 MB, free: 2.34 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/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) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches