Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_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.001425/0.001426, allocations: 106.8 kB / 16.92 MB, free: 5.766 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.001013/0.001013, allocations: 191.5 kB / 17.85 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 222.9 MB / 241.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009882/0.0009882, allocations: 47.23 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07997/0.08098, allocations: 49.43 MB / 350.1 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002679/0.08368, allocations: 1.813 MB / 352 MB, free: 2.516 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009534/0.08466, allocations: 0.631 MB / 352.6 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.617e-05/0.08477, allocations: 4 kB / 352.6 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.206e-05/0.08487, allocations: 31.61 kB / 352.6 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.559e-05/0.08498, allocations: 31.72 kB / 352.7 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002136/0.08521, allocations: 87.78 kB / 352.7 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001688/0.08539, allocations: 171.5 kB / 352.9 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.08553, allocations: 70.62 kB / 353 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001019/0.08563, allocations: 75.69 kB / 353.1 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.08576, allocations: 87.56 kB / 353.1 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.861e-05/0.08579, allocations: 16 kB / 353.2 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.995e-05/0.08585, allocations: 19.98 kB / 353.2 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.383e-05/0.08591, allocations: 43.84 kB / 353.2 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.695e-05/0.08598, allocations: 87.45 kB / 353.3 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001781/0.08617, allocations: 187.5 kB / 353.5 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.08618, allocations: 0 / 353.5 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.08618, allocations: 0 / 353.5 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.08619, allocations: 4 kB / 353.5 MB, free: 0.9805 MB / 286.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.0006685/0.08687, allocations: 0.5024 MB / 354 MB, free: 440 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.216e-05/0.0869, allocations: 11.97 kB / 354 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.372e-05/0.08695, allocations: 54.73 kB / 354.1 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.953e-05/0.08699, allocations: 20.66 kB / 354.1 MB, free: 344 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.08718, allocations: 244.4 kB / 354.3 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.08721, allocations: 16.38 kB / 354.3 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.194e-05/0.08724, allocations: 23.92 kB / 354.4 MB, free: 20 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003301/0.08757, allocations: 206 kB / 354.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.08759, allocations: 3.938 kB / 354.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.08761, allocations: 8 kB / 354.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.08763, allocations: 7.984 kB / 354.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002915/0.08792, allocations: 147.7 kB / 354.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008695/0.0888, allocations: 0.7778 MB / 355.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005513/0.08936, allocations: 190.6 kB / 355.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001315/0.08951, allocations: 60.81 kB / 355.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.08955, allocations: 11.94 kB / 355.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002363/0.08979, allocations: 148.9 kB / 355.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.0898, allocations: 0 / 355.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005094/0.09031, allocations: 241.3 kB / 356.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.09037, allocations: 89.05 kB / 356.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001657/0.09054, allocations: 218.8 kB / 356.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.09057, allocations: 29.7 kB / 356.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.482e-05/0.09065, allocations: 140.3 kB / 356.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.407e-05/0.09069, allocations: 39.53 kB / 356.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.684e-05/0.09077, allocations: 61.69 kB / 356.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.948e-05/0.09086, allocations: 326.8 kB / 357 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.09101, allocations: 63.95 kB / 357.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.0912, allocations: 144.5 kB / 357.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003136/0.09152, allocations: 212.3 kB / 357.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.09153, allocations: 3.938 kB / 357.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004109/0.09195, allocations: 249.2 kB / 357.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.09197, allocations: 10.81 kB / 357.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.09198, allocations: 0 / 357.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.092, allocations: 4 kB / 357.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.09217, allocations: 43.91 kB / 357.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.09218, allocations: 11.88 kB / 357.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.09235, allocations: 27.83 kB / 357.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/0.09237, allocations: 8 kB / 357.8 MB, free: 12.35 MB / 302.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.0001146/0.09249, allocations: 152.2 kB / 357.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.357e-05/0.09253, allocations: 19.81 kB / 357.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000219/0.09276, allocations: 127 kB / 358.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.09277, allocations: 8.453 kB / 358.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.09279, allocations: 7.875 kB / 358.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.09279, allocations: 3.984 kB / 358.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005192/0.09332, allocations: 486.2 kB / 358.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.09333, allocations: 0 / 358.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.09345, allocations: 23.92 kB / 358.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.09346, allocations: 4.25 kB / 358.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.09348, allocations: 4 kB / 358.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.09349, allocations: 7.984 kB / 358.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.09349, allocations: 0 / 358.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003843/0.09388, allocations: 287.5 kB / 358.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.65e-05/0.09394, allocations: 104.7 kB / 359 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.969e-05/0.09398, allocations: 4 kB / 359 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.09415, allocations: 15.97 kB / 359 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.864e-05/0.09421, allocations: 19.98 kB / 359 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.09424, allocations: 11.98 kB / 359 MB, free: 10.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001059/0.09435, allocations: 148.6 kB / 359.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.09435, allocations: 0 / 359.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002807/0.09464, allocations: 32 kB / 359.2 MB, free: 10.8 MB / 302.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.0006179/0.09527, allocations: 0.8382 MB / 360.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003592/0.09564, allocations: 179.7 kB / 360.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.09565, allocations: 0 / 360.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.09582, allocations: 75.89 kB / 360.3 MB, free: 9.688 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003141/0.09614, allocations: 36.69 kB / 360.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0023/0.09845, allocations: 2.225 MB / 362.6 MB, free: 7.285 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/0.09871, allocations: 0.7321 MB / 363.3 MB, free: 6.527 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.535e-05/0.09881, allocations: 33.52 kB / 363.3 MB, free: 6.496 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.398e-05/0.09891, allocations: 63.42 kB / 363.4 MB, free: 6.434 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.09891, allocations: 0 / 363.4 MB, free: 6.434 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5491/0.6481, allocations: 4.031 MB / 367.4 MB, free: 2.465 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.71, allocations: 17 kB / 367.4 MB, free: 2.449 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches