Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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: translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|sampler.firstTrigger|sampler.y|stateSpace.firstTrigger|stateSpace.x.1.|stateSpace.x.2.|stateSpace.y.1.|transferFunction.firstTrigger|transferFunction.x.1.|transferFunction.x1|transferFunction.xext.1.|transferFunction.xext.2.|transferFunction.y|triggeredMax.y|triggeredSampler.y|unitDelay.firstTrigger|unitDelay.u|unitDelay.y|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete") translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|sampler.firstTrigger|sampler.y|stateSpace.firstTrigger|stateSpace.x.1.|stateSpace.x.2.|stateSpace.y.1.|transferFunction.firstTrigger|transferFunction.x.1.|transferFunction.x1|transferFunction.xext.1.|transferFunction.xext.2.|transferFunction.y|triggeredMax.y|triggeredSampler.y|unitDelay.firstTrigger|unitDelay.u|unitDelay.y|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009325/0.0009325, allocations: 184.7 kB / 7.802 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.101/1.101, allocations: 205.2 MB / 213.4 MB, free: 13.84 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.0007891/0.0007891, allocations: 94.7 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1569/0.1569, allocations: 43.49 MB / 352.8 MB, free: 1.949 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.271e-06/6.271e-06, allocations: 4 kB / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.202/0.202, allocations: 58.84 MB / 476.6 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09957/0.3017, allocations: 87.18 MB / 0.5505 GB, free: 11.75 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001507/0.3018, allocations: 59.98 kB / 0.5506 GB, free: 11.7 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01074/0.3126, allocations: 3.613 MB / 0.5541 GB, free: 8.066 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.647e-05/0.3126, allocations: 8 kB / 0.5541 GB, free: 8.059 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008672/0.3135, allocations: 0.5645 MB / 0.5547 GB, free: 7.449 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.019e-05/0.3135, allocations: 12.02 kB / 0.5547 GB, free: 7.438 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.785e-05/0.3136, allocations: 31.62 kB / 0.5547 GB, free: 7.406 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002495/0.3138, allocations: 247.7 kB / 0.5549 GB, free: 7.121 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.3139, allocations: 11.98 kB / 0.555 GB, free: 7.109 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.612e-05/0.3139, allocations: 19.98 kB / 0.555 GB, free: 7.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000216/0.3141, allocations: 112 kB / 0.5551 GB, free: 6.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003034/0.3144, allocations: 205.4 kB / 0.5553 GB, free: 6.773 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.3145, allocations: 3.984 kB / 0.5553 GB, free: 6.77 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.295e-05/0.3145, allocations: 4 kB / 0.5553 GB, free: 6.766 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.3145, allocations: 4 kB / 0.5553 GB, free: 6.762 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007717/0.3153, allocations: 0.5007 MB / 0.5558 GB, free: 6.223 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003626/0.3157, allocations: 272.5 kB / 0.556 GB, free: 5.953 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/0.3158, allocations: 112.8 kB / 0.5561 GB, free: 5.84 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.3159, allocations: 4 kB / 0.5562 GB, free: 5.836 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002861/0.3162, allocations: 219.4 kB / 0.5564 GB, free: 5.609 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 1.894e-06/0.3162, allocations: 4 kB / 0.5564 GB, free: 5.605 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.0004682/0.3167, allocations: 309.2 kB / 0.5567 GB, free: 5.297 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/0.3167, allocations: 77.81 kB / 0.5567 GB, free: 5.211 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.3169, allocations: 175 kB / 0.5569 GB, free: 5.031 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.607e-05/0.3169, allocations: 41.69 kB / 0.5569 GB, free: 4.984 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.318e-05/0.3169, allocations: 105 kB / 0.557 GB, free: 4.875 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.916e-05/0.317, allocations: 98.84 kB / 0.5571 GB, free: 4.777 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.148e-05/0.3171, allocations: 0 / 0.5571 GB, free: 4.777 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.3172, allocations: 346.7 kB / 0.5575 GB, free: 4.43 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.3173, allocations: 89.23 kB / 0.5576 GB, free: 4.344 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002379/0.3175, allocations: 266.5 kB / 0.5578 GB, free: 4 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001851/0.3177, allocations: 131.8 kB / 0.5579 GB, free: 3.871 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.3177, allocations: 0 / 0.5579 GB, free: 3.871 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0004819/0.3182, allocations: 364.8 kB / 0.5583 GB, free: 3.508 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.839e-06/0.3182, allocations: 4 kB / 0.5583 GB, free: 3.504 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3183, allocations: 8 kB / 0.5583 GB, free: 3.496 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.3183, allocations: 8 kB / 0.5583 GB, free: 3.488 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001991/0.3185, allocations: 68.56 kB / 0.5584 GB, free: 3.422 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.3185, allocations: 11.94 kB / 0.5584 GB, free: 3.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.3187, allocations: 39.67 kB / 0.5584 GB, free: 3.371 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.651e-05/0.3187, allocations: 23.94 kB / 0.5584 GB, free: 3.348 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 62 ($PRE.triggeredMax.y,triggeredMax.y,$PRE.triggeredSampler.y,triggeredSampler.y,$PRE.stateSpace.firstTrigger,stateSpace.firstTrigger,$PRE.stateSpace.x[1],stateSpace.x[1],$PRE.stateSpace.x[2],stateSpace.x[2],$PRE.stateSpace.y[1],stateSpace.y[1],$PRE.transferFunction.firstTrigger,transferFunction.firstTrigger,$PRE.transferFunction.x1,transferFunction.x1,$PRE.transferFunction.xext[1],transferFunction.xext[1],$PRE.transferFunction.xext[2],transferFunction.xext[2],$PRE.transferFunction.x[1],transferFunction.x[1],$PRE.transferFunction.y,transferFunction.y,$PRE.unitDelay.firstTrigger,unitDelay.firstTrigger,$PRE.unitDelay.y,unitDelay.y,$PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.sampler.firstTrigger,sampler.firstTrigger,$whenCondition8,$whenCondition1,sampler.sampleTrigger,$PRE.zeroOrderHold.ySample,$whenCondition2,zeroOrderHold.sampleTrigger,$whenCondition3,firstOrderHold.sampleTrigger,$whenCondition4,unitDelay.sampleTrigger,$whenCondition5,transferFunction.sampleTrigger,$whenCondition6,stateSpace.sampleTrigger,$whenCondition7,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,sampler.y,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0001239/0.3189, allocations: 160.8 kB / 0.5586 GB, free: 3.184 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.134e-05/0.3189, allocations: 31.62 kB / 0.5586 GB, free: 3.152 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.759e-05/0.319, allocations: 22.77 kB / 0.5586 GB, free: 3.133 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.319, allocations: 8 kB / 0.5586 GB, free: 3.125 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.319, allocations: 0 / 0.5586 GB, free: 3.125 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.319, allocations: 3.984 kB / 0.5587 GB, free: 3.121 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001038/0.32, allocations: 0.7498 MB / 0.5594 GB, free: 2.328 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.32, allocations: 8 kB / 0.5594 GB, free: 2.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.1e-05/0.3201, allocations: 11.94 kB / 0.5594 GB, free: 2.309 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.3201, allocations: 7.906 kB / 0.5594 GB, free: 2.301 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.734e-05/0.3202, allocations: 11.97 kB / 0.5594 GB, free: 2.289 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.3202, allocations: 0 / 0.5594 GB, free: 2.289 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.3202, allocations: 0 / 0.5594 GB, free: 2.289 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004879/0.3207, allocations: 423.3 kB / 0.5598 GB, free: 1.859 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.16e-05/0.3207, allocations: 104.8 kB / 0.5599 GB, free: 1.738 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.395e-05/0.3208, allocations: 15.98 kB / 0.5599 GB, free: 1.723 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002414/0.3211, allocations: 31.97 kB / 0.56 GB, free: 1.691 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.519e-05/0.3211, allocations: 31.91 kB / 0.56 GB, free: 1.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.803e-05/0.3211, allocations: 15.98 kB / 0.56 GB, free: 1.645 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001019/0.3213, allocations: 145.5 kB / 0.5602 GB, free: 1.504 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003438/0.3216, allocations: 71.77 kB / 0.5602 GB, free: 1.434 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 39 (booleanPulse.y,stateSpace.sampleTrigger,transferFunction.sampleTrigger,unitDelay.sampleTrigger,firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,sampler.sampleTrigger,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,sampler.firstTrigger,sampler.y,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c,unitDelay.firstTrigger,unitDelay.y,transferFunction.firstTrigger,transferFunction.y,transferFunction.x[1],transferFunction.x1,transferFunction.xext[1],transferFunction.xext[2],stateSpace.firstTrigger,stateSpace.y[1],stateSpace.x[1],stateSpace.x[2],triggeredSampler.y,booleanPulse.pulseStart,triggeredMax.y) * Number of discrete states: 8 (zeroOrderHold.ySample,triggeredMax.y,stateSpace.x[1],stateSpace.x[2],transferFunction.x[1],unitDelay.u,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 24 * 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.0001368/0.3217, allocations: 131.1 kB / 0.5603 GB, free: 1.293 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004121/0.3222, allocations: 291.7 kB / 0.5606 GB, free: 1.008 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3222, allocations: 0 / 0.5606 GB, free: 1.008 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000212/0.3224, allocations: 155.8 kB / 0.5608 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.3227, allocations: 29.33 kB / 0.5608 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009328/0.3236, allocations: 386.8 kB / 0.5612 GB, free: 440 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003511/0.324, allocations: 0.7989 MB / 0.562 GB, free: 15.6 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.324, allocations: 4 kB / 0.562 GB, free: 15.6 MB / 410.7 MB Notification: Performance of Templates: time 0.005773/0.3298, allocations: 2.99 MB / 0.5649 GB, free: 12.62 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Discrete/Discrete.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches