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.001161/0.00116, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.001215/0.001215, allocations: 190 kB / 18.07 MB, free: 5.414 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.213/1.213, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001218/0.001218, allocations: 59.91 kB / 280.1 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07915/0.08038, allocations: 46.61 MB / 326.7 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003167/0.08358, allocations: 1.871 MB / 328.6 MB, free: 2.914 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001328/0.08494, allocations: 0.6631 MB / 329.2 MB, free: 2.242 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001789/0.08514, allocations: 4 kB / 329.2 MB, free: 2.238 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001479/0.0853, allocations: 15.8 kB / 329.2 MB, free: 2.223 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001415/0.08547, allocations: 27.78 kB / 329.3 MB, free: 2.195 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002811/0.08576, allocations: 67.88 kB / 329.3 MB, free: 2.129 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002541/0.08602, allocations: 175.4 kB / 329.5 MB, free: 1.957 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.08619, allocations: 66.64 kB / 329.6 MB, free: 1.891 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001199/0.08632, allocations: 59.77 kB / 329.6 MB, free: 1.832 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/0.08647, allocations: 91.53 kB / 329.7 MB, free: 1.742 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.224e-05/0.08651, allocations: 16 kB / 329.7 MB, free: 1.727 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.903e-05/0.08659, allocations: 15.94 kB / 329.7 MB, free: 1.711 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.42e-05/0.08666, allocations: 35.84 kB / 329.8 MB, free: 1.676 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.951e-05/0.08675, allocations: 75.53 kB / 329.9 MB, free: 1.602 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002088/0.08697, allocations: 179.6 kB / 330 MB, free: 1.426 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.08698, allocations: 0 / 330 MB, free: 1.426 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.61e-07/0.08699, allocations: 3.938 kB / 330 MB, free: 1.422 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.074e-06/0.087, allocations: 0 / 330 MB, free: 1.422 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.0009068/0.08791, allocations: 0.5025 MB / 330.5 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.08796, allocations: 8.031 kB / 330.5 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.507e-05/0.08802, allocations: 50.73 kB / 330.6 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.355e-05/0.08808, allocations: 24.66 kB / 330.6 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002423/0.08833, allocations: 239.8 kB / 330.9 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.033e-05/0.08836, allocations: 16.38 kB / 330.9 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.458e-05/0.08839, allocations: 16.38 kB / 330.9 MB, free: 488 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003673/0.08877, allocations: 221.1 kB / 331.1 MB, free: 248 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.345e-06/0.08878, allocations: 0 / 331.1 MB, free: 248 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.08881, allocations: 4 kB / 331.1 MB, free: 244 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.013e-05/0.08883, allocations: 8 kB / 331.1 MB, free: 236 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003071/0.08915, allocations: 139.8 kB / 331.2 MB, free: 96 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.09019, allocations: 0.7855 MB / 332 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005964/0.0908, allocations: 190.7 kB / 332.2 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.09095, allocations: 64.77 kB / 332.3 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.742e-05/0.091, allocations: 7.984 kB / 332.3 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002671/0.09127, allocations: 144.9 kB / 332.4 MB, free: 14.82 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.09128, allocations: 0 / 332.4 MB, free: 14.82 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.000559/0.09185, allocations: 245.5 kB / 332.7 MB, free: 14.57 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.04e-05/0.09191, allocations: 85.09 kB / 332.8 MB, free: 14.47 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001841/0.0921, allocations: 222.6 kB / 333 MB, free: 14.24 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.09213, allocations: 33.7 kB / 333 MB, free: 14.2 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.582e-05/0.09222, allocations: 140.2 kB / 333.1 MB, free: 14.06 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.299e-05/0.09226, allocations: 35.55 kB / 333.2 MB, free: 14.02 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.585e-05/0.09235, allocations: 57.69 kB / 333.2 MB, free: 13.96 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.09249, allocations: 338.8 kB / 333.6 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.09265, allocations: 64.02 kB / 333.6 MB, free: 13.56 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/0.09288, allocations: 136.5 kB / 333.8 MB, free: 13.39 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003209/0.09321, allocations: 212.7 kB / 334 MB, free: 13.16 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.09322, allocations: 4 kB / 334 MB, free: 13.15 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004243/0.09365, allocations: 249.1 kB / 334.2 MB, free: 12.9 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.09367, allocations: 4 kB / 334.2 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.09369, allocations: 8.188 kB / 334.2 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.09371, allocations: 11.94 kB / 334.2 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001635/0.09387, allocations: 43.91 kB / 334.3 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.497e-06/0.09389, allocations: 4 kB / 334.3 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/0.09407, allocations: 31.77 kB / 334.3 MB, free: 12.8 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.09409, allocations: 8 kB / 334.3 MB, free: 12.79 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.0001303/0.09423, allocations: 144 kB / 334.5 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.899e-05/0.09427, allocations: 19.81 kB / 334.5 MB, free: 12.62 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002358/0.09451, allocations: 135 kB / 334.6 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.09452, allocations: 4 kB / 334.6 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.09453, allocations: 0 / 334.6 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.728e-06/0.09454, allocations: 3.938 kB / 334.6 MB, free: 12.47 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000559/0.0951, allocations: 482.2 kB / 335.1 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.09512, allocations: 0 / 335.1 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.09524, allocations: 19.98 kB / 335.1 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.09525, allocations: 4 kB / 335.1 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.09527, allocations: 3.938 kB / 335.1 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.09528, allocations: 0 / 335.1 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.09529, allocations: 12 kB / 335.1 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004307/0.09573, allocations: 284.1 kB / 335.4 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.63e-05/0.09578, allocations: 96.83 kB / 335.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.389e-05/0.09582, allocations: 11.94 kB / 335.5 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/0.09599, allocations: 15.97 kB / 335.5 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.818e-05/0.09606, allocations: 19.97 kB / 335.6 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.741e-05/0.09609, allocations: 8 kB / 335.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001104/0.0962, allocations: 140.6 kB / 335.7 MB, free: 11.3 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09621, allocations: 0 / 335.7 MB, free: 11.3 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002874/0.0965, allocations: 39.94 kB / 335.7 MB, free: 11.27 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.0006747/0.09718, allocations: 0.838 MB / 336.6 MB, free: 10.4 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003582/0.09755, allocations: 171.8 kB / 336.7 MB, free: 10.23 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.09757, allocations: 4 kB / 336.7 MB, free: 10.23 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001764/0.09775, allocations: 75.89 kB / 336.8 MB, free: 10.15 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003297/0.09809, allocations: 35.81 kB / 336.9 MB, free: 10.12 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002498/0.1006, allocations: 2.279 MB / 339.1 MB, free: 7.699 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.1009, allocations: 0.7362 MB / 339.9 MB, free: 6.938 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001075/0.101, allocations: 33.52 kB / 339.9 MB, free: 6.906 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.1011, allocations: 67.41 kB / 340 MB, free: 6.84 MB / 286.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1011, allocations: 0 / 340 MB, free: 6.84 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.342/1.443, allocations: 3.7 MB / 343.7 MB, free: 3.113 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002599/1.443, allocations: 198.8 kB / 343.9 MB, free: 2.848 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.707/3.151, allocations: 0 / 343.9 MB, free: 2.848 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","../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches