Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.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.BooleanNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1",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.000965/0.000965, allocations: 103.8 kB / 17.16 MB, free: 6.32 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.0009282/0.0009282, 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.157/1.157, 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.001007/0.001007, allocations: 51.92 kB / 280.1 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07355/0.07457, allocations: 46.62 MB / 326.7 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003222/0.07783, allocations: 2.483 MB / 329.2 MB, free: 2.309 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001602/0.07945, allocations: 1.244 MB / 330.4 MB, free: 1.055 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.07958, allocations: 8 kB / 330.4 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005305/0.08012, allocations: 211.2 kB / 330.6 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002531/0.08038, allocations: 139.5 kB / 330.8 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004416/0.08083, allocations: 239.7 kB / 331 MB, free: 480 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003466/0.08119, allocations: 451.7 kB / 331.4 MB, free: 28 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00027/0.08147, allocations: 201.8 kB / 331.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001561/0.08163, allocations: 175.2 kB / 331.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001693/0.08181, allocations: 203 kB / 332 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.514e-05/0.08186, allocations: 20 kB / 332 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001735/0.08204, allocations: 103.9 kB / 332.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.08215, allocations: 119.6 kB / 332.2 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001501/0.08231, allocations: 202.7 kB / 332.4 MB, free: 15.01 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004038/0.08272, allocations: 0.4985 MB / 332.9 MB, free: 14.51 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.08273, allocations: 4 kB / 332.9 MB, free: 14.51 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.08274, allocations: 0 / 332.9 MB, free: 14.51 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.08275, allocations: 4 kB / 332.9 MB, free: 14.5 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001072/0.08383, allocations: 0.8551 MB / 333.8 MB, free: 13.59 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.991e-05/0.08386, allocations: 8.031 kB / 333.8 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.743e-05/0.08393, allocations: 74.7 kB / 333.9 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.691e-05/0.08403, allocations: 56.28 kB / 333.9 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003902/0.08442, allocations: 387 kB / 334.3 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.429e-05/0.08449, allocations: 63.02 kB / 334.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.572e-05/0.08454, allocations: 47.92 kB / 334.4 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000576/0.08512, allocations: 424.7 kB / 334.8 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.08514, allocations: 0 / 334.8 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.929e-05/0.08518, allocations: 20 kB / 334.9 MB, free: 12.44 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.034e-05/0.0852, allocations: 12.44 kB / 334.9 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004242/0.08563, allocations: 269.5 kB / 335.1 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.08719, allocations: 1.686 MB / 336.8 MB, free: 10.39 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000491/0.0877, allocations: 295.8 kB / 337.1 MB, free: 10.07 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000204/0.08791, allocations: 134.5 kB / 337.2 MB, free: 9.934 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.495e-05/0.08797, allocations: 11.94 kB / 337.2 MB, free: 9.922 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000396/0.08837, allocations: 331.7 kB / 337.6 MB, free: 9.559 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 1.583e-06/0.08838, allocations: 0 / 337.6 MB, free: 9.559 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.0008255/0.08921, allocations: 490.6 kB / 338.1 MB, free: 9.066 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.746e-05/0.08929, allocations: 162.2 kB / 338.2 MB, free: 8.871 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004214/0.08972, allocations: 493.2 kB / 338.7 MB, free: 8.383 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.513e-05/0.08976, allocations: 37.7 kB / 338.7 MB, free: 8.34 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.0899, allocations: 236.5 kB / 339 MB, free: 8.105 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.329e-05/0.08997, allocations: 86.98 kB / 339 MB, free: 8.02 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.0901, allocations: 110.2 kB / 339.2 MB, free: 7.906 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.09021, allocations: 366.7 kB / 339.5 MB, free: 7.539 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.09043, allocations: 113.1 kB / 339.6 MB, free: 7.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002812/0.09072, allocations: 274.7 kB / 339.9 MB, free: 7.098 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004597/0.09118, allocations: 426.4 kB / 340.3 MB, free: 6.613 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.0912, allocations: 0 / 340.3 MB, free: 6.613 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006512/0.09185, allocations: 474.7 kB / 340.8 MB, free: 6.137 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.344e-05/0.0919, allocations: 33.7 kB / 340.8 MB, free: 6.098 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.09191, allocations: 8 kB / 340.8 MB, free: 6.09 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.09193, allocations: 8 kB / 340.8 MB, free: 6.082 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.09206, allocations: 43.84 kB / 340.9 MB, free: 6.039 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.09207, allocations: 8 kB / 340.9 MB, free: 6.031 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002089/0.09229, allocations: 51.97 kB / 340.9 MB, free: 5.98 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.67e-05/0.09233, allocations: 31.94 kB / 341 MB, free: 5.949 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.onDelay.u,$PRE.onDelay.t_next,triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition5,$whenCondition4,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition1,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay.t_next,onDelay.delaySignal,onDelay.y,onDelay.u,$whenCondition3,$whenCondition2,sampleTriggerReset.y,sampleTriggerSet.y,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,triggeredAdd.local_set,triggeredAdd.local_reset,set1.expr[2],set1.expr[1],changing.y,changing.u,$PRE.changing.u,falling.not_u,$PRE.falling.not_u,set1.firstActiveIndex,set1.y,$PRE.set1.y,set1.u[2],set1.u[1],rising.u,$PRE.rising.u,nor1.y,or2.u[1],nand1.u[1],xor1.u[1],or1.u[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,and1.u[2],and1.u[1],$whenCondition6,showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * 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.0002136/0.09255, allocations: 252.5 kB / 341.2 MB, free: 5.684 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.367e-05/0.09262, allocations: 47.42 kB / 341.2 MB, free: 5.637 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004423/0.09307, allocations: 265.1 kB / 341.5 MB, free: 5.363 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.09309, allocations: 4 kB / 341.5 MB, free: 5.359 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.0931, allocations: 0 / 341.5 MB, free: 5.359 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.0931, allocations: 4 kB / 341.5 MB, free: 5.355 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008656/0.09397, allocations: 0.7789 MB / 342.3 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.09399, allocations: 4 kB / 342.3 MB, free: 4.516 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.534e-05/0.09405, allocations: 15.92 kB / 342.3 MB, free: 4.5 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.09406, allocations: 11.94 kB / 342.3 MB, free: 4.488 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.534e-05/0.09409, allocations: 11.98 kB / 342.3 MB, free: 4.477 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.0941, allocations: 4 kB / 342.3 MB, free: 4.473 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.09411, allocations: 3.938 kB / 342.3 MB, free: 4.469 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006129/0.09473, allocations: 0.5017 MB / 342.8 MB, free: 3.941 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.063e-05/0.09481, allocations: 120.6 kB / 343 MB, free: 3.805 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.979e-05/0.09488, allocations: 23.86 kB / 343 MB, free: 3.781 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001899/0.09507, allocations: 23.98 kB / 343 MB, free: 3.758 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.985e-05/0.09517, allocations: 35.94 kB / 343 MB, free: 3.723 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.002e-05/0.09521, allocations: 16 kB / 343.1 MB, free: 3.707 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002765/0.09549, allocations: 327.1 kB / 343.4 MB, free: 3.391 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.09549, allocations: 0 / 343.4 MB, free: 3.391 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003955/0.09589, allocations: 112 kB / 343.5 MB, free: 3.281 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 (rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 12 (falling.not_u,rising.u,set1.y,changing.u,triggeredAdd.y,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * 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.001651/0.09755, allocations: 1.408 MB / 344.9 MB, free: 1.848 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005574/0.09812, allocations: 395.1 kB / 345.3 MB, free: 1.449 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.09813, allocations: 0 / 345.3 MB, free: 1.449 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002978/0.09844, allocations: 248.5 kB / 345.5 MB, free: 1.195 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004998/0.09895, allocations: 81.92 kB / 345.6 MB, free: 1.113 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004441/0.1034, allocations: 4.184 MB / 349.8 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004383/0.1039, allocations: 0.8359 MB / 350.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002512/0.1041, allocations: 87.78 kB / 350.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001925/0.1043, allocations: 159.4 kB / 350.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1043, allocations: 0 / 350.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7211/0.8255, allocations: 9.439 MB / 360.3 MB, free: 2.141 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002832/0.8258, allocations: 232.7 kB / 360.5 MB, free: 1.879 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.923/2.749, allocations: 3.938 kB / 360.5 MB, free: 1.875 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches