Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001988/0.001988, allocations: 207.2 kB / 24.47 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.48/1.48, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.235/0.235, allocations: 46.95 MB / 361.6 MB, free: 4.043 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 67.91 kB / 0.4973 GB, free: 7.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.32, allocations: 66.04 MB / 0.5618 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002821/0.3229, allocations: 1.523 MB / 0.5633 GB, free: 2.633 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001007/0.3239, allocations: 0.5298 MB / 0.5638 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.786e-05/0.3239, allocations: 0 / 0.5638 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.781e-05/0.324, allocations: 3.938 kB / 0.5638 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.637e-05/0.324, allocations: 19.8 kB / 0.5638 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002361/0.3243, allocations: 51.88 kB / 0.5639 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000153/0.3244, allocations: 91.75 kB / 0.564 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.883e-05/0.3245, allocations: 11.94 kB / 0.564 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001548/0.3247, allocations: 47.84 kB / 0.564 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.984e-05/0.3248, allocations: 39.83 kB / 0.5641 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.3248, allocations: 8 kB / 0.5641 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.812e-05/0.3248, allocations: 15.98 kB / 0.5641 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.893e-05/0.3249, allocations: 19.92 kB / 0.5641 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.966e-05/0.3249, allocations: 35.84 kB / 0.5641 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.3251, allocations: 82.09 kB / 0.5642 GB, free: 1.684 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3251, allocations: 4 kB / 0.5642 GB, free: 1.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3251, allocations: 0 / 0.5642 GB, free: 1.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.3251, allocations: 0 / 0.5642 GB, free: 1.68 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000778/0.3258, allocations: 334 kB / 0.5645 GB, free: 1.324 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.3259, allocations: 11.97 kB / 0.5646 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000174/0.3261, allocations: 24.88 kB / 0.5646 GB, free: 1.289 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000259/0.3263, allocations: 130.4 kB / 0.5647 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.3263, allocations: 4.375 kB / 0.5647 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.369e-05/0.3264, allocations: 12.36 kB / 0.5647 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002506/0.3266, allocations: 89.95 kB / 0.5648 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.3266, allocations: 0 / 0.5648 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.65e-05/0.3266, allocations: 4 kB / 0.5648 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.3266, allocations: 0 / 0.5648 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001495/0.3268, allocations: 51.91 kB / 0.5649 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005172/0.3273, allocations: 264.4 kB / 0.5651 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002159/0.3275, allocations: 86.48 kB / 0.5652 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.3276, allocations: 40.83 kB / 0.5652 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.459e-05/0.3277, allocations: 4 kB / 0.5652 GB, free: 0.543 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.3279, allocations: 107 kB / 0.5653 GB, free: 440 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.3279, allocations: 0 / 0.5653 GB, free: 440 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004954/0.3284, allocations: 205.7 kB / 0.5655 GB, free: 228 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.3284, allocations: 55.41 kB / 0.5656 GB, free: 160 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.3285, allocations: 113.8 kB / 0.5657 GB, free: 36 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.636e-05/0.3286, allocations: 37.91 kB / 0.5657 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.9e-05/0.3286, allocations: 96.38 kB / 0.5658 GB, free: 15.89 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.156e-05/0.3287, allocations: 43.66 kB / 0.5659 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.227e-05/0.3287, allocations: 33.7 kB / 0.5659 GB, free: 15.81 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.3289, allocations: 330.8 kB / 0.5662 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.6e-05/0.329, allocations: 35.92 kB / 0.5662 GB, free: 15.44 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.3291, allocations: 85.22 kB / 0.5663 GB, free: 15.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002245/0.3293, allocations: 116.2 kB / 0.5664 GB, free: 15.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3293, allocations: 0 / 0.5664 GB, free: 15.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002972/0.3296, allocations: 161.6 kB / 0.5666 GB, free: 15.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.3297, allocations: 4 kB / 0.5666 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3297, allocations: 4 kB / 0.5666 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.3297, allocations: 0 / 0.5666 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.3298, allocations: 23.98 kB / 0.5666 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.3298, allocations: 7.984 kB / 0.5666 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.549e-05/0.3299, allocations: 15.89 kB / 0.5666 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/0.3299, allocations: 4 kB / 0.5666 GB, free: 14.99 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample,$PRE.zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001245/0.33, allocations: 127.8 kB / 0.5668 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.37e-05/0.33, allocations: 11.95 kB / 0.5668 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.759e-05/0.3301, allocations: 20.42 kB / 0.5668 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.3301, allocations: 0 / 0.5668 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.3301, allocations: 0 / 0.5668 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.3301, allocations: 7.938 kB / 0.5668 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005584/0.3306, allocations: 385.5 kB / 0.5672 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3306, allocations: 0 / 0.5672 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.36e-05/0.3307, allocations: 8 kB / 0.5672 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.3307, allocations: 0 / 0.5672 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.066e-05/0.3307, allocations: 15.92 kB / 0.5672 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3307, allocations: 3.984 kB / 0.5672 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3307, allocations: 4 kB / 0.5672 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003686/0.3311, allocations: 263.4 kB / 0.5675 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.509e-05/0.3311, allocations: 7.953 kB / 0.5675 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.866e-05/0.3311, allocations: 7.922 kB / 0.5675 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.3312, allocations: 8 kB / 0.5675 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.759e-05/0.3313, allocations: 15.97 kB / 0.5675 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.3313, allocations: 7.938 kB / 0.5675 GB, free: 14.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.499e-05/0.3314, allocations: 91.27 kB / 0.5676 GB, free: 13.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3314, allocations: 4 kB / 0.5676 GB, free: 13.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002505/0.3316, allocations: 24 kB / 0.5676 GB, free: 13.93 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001023/0.3317, allocations: 95.25 kB / 0.5677 GB, free: 13.83 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002824/0.332, allocations: 107.8 kB / 0.5678 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.332, allocations: 0 / 0.5678 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001189/0.3321, allocations: 47.97 kB / 0.5679 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.3324, allocations: 16.22 kB / 0.5679 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004317/0.3328, allocations: 223.5 kB / 0.5681 GB, free: 13.42 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.552e-05/0.3329, allocations: 79.08 kB / 0.5682 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.373e-05/0.333, allocations: 12.97 kB / 0.5682 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.898e-05/0.333, allocations: 11.44 kB / 0.5682 GB, free: 13.29 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.333, allocations: 0 / 0.5682 GB, free: 13.29 MB / 414.1 MB Notification: Performance of Templates: time 0.003851/0.3369, allocations: 1.132 MB / 0.5693 GB, free: 12.18 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.989461492004921]