Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00156/0.00156, allocations: 114.5 kB / 21.17 MB, free: 0.6172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002187/0.002187, allocations: 206.2 kB / 24.47 MB, free: 4.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.562/1.562, allocations: 230.2 MB / 257.8 MB, free: 8.492 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2963/0.2963, allocations: 46.89 MB / 361.1 MB, free: 4.719 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003799/0.003799, allocations: 79.86 kB / 0.4967 GB, free: 7.84 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3846/0.3884, allocations: 65.98 MB / 0.5612 GB, free: 5.039 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002932/0.3913, allocations: 1.558 MB / 0.5627 GB, free: 3.473 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.3924, allocations: 0.561 MB / 0.5633 GB, free: 2.906 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.486e-05/0.3924, allocations: 0 / 0.5633 GB, free: 2.906 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.674e-05/0.3925, allocations: 11.86 kB / 0.5633 GB, free: 2.895 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.98e-05/0.3926, allocations: 15.86 kB / 0.5633 GB, free: 2.879 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002759/0.3929, allocations: 51.88 kB / 0.5633 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001874/0.393, allocations: 95.64 kB / 0.5634 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.3932, allocations: 11.98 kB / 0.5634 GB, free: 2.723 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001696/0.3933, allocations: 51.83 kB / 0.5635 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.3934, allocations: 39.83 kB / 0.5635 GB, free: 2.633 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.18e-05/0.3934, allocations: 8 kB / 0.5635 GB, free: 2.625 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.248e-05/0.3935, allocations: 12 kB / 0.5635 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.134e-05/0.3935, allocations: 19.92 kB / 0.5636 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.858e-05/0.3936, allocations: 39.8 kB / 0.5636 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001719/0.3938, allocations: 86.44 kB / 0.5637 GB, free: 2.473 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3938, allocations: 0 / 0.5637 GB, free: 2.473 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3938, allocations: 4 kB / 0.5637 GB, free: 2.469 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.3938, allocations: 0 / 0.5637 GB, free: 2.469 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.0007934/0.3946, allocations: 411.1 kB / 0.5641 GB, free: 2.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.3946, allocations: 8.031 kB / 0.5641 GB, free: 2.012 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001664/0.3948, allocations: 24.81 kB / 0.5641 GB, free: 1.988 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.395, allocations: 188.3 kB / 0.5643 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.395, allocations: 8.359 kB / 0.5643 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.84e-05/0.3951, allocations: 8.375 kB / 0.5643 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002325/0.3953, allocations: 93.89 kB / 0.5644 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.3953, allocations: 0 / 0.5644 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.3953, allocations: 0 / 0.5644 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.3953, allocations: 0 / 0.5644 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001521/0.3955, allocations: 51.97 kB / 0.5644 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000561/0.396, allocations: 332.7 kB / 0.5648 GB, free: 1.227 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.3963, allocations: 86.47 kB / 0.5648 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.3964, allocations: 44.83 kB / 0.5649 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/0.3964, allocations: 11.97 kB / 0.5649 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001936/0.3966, allocations: 99.36 kB / 0.565 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.3966, allocations: 0 / 0.565 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004894/0.3971, allocations: 193.7 kB / 0.5652 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/0.3971, allocations: 55.34 kB / 0.5652 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.3972, allocations: 121.8 kB / 0.5653 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.3973, allocations: 33.7 kB / 0.5654 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.036e-05/0.3973, allocations: 92.36 kB / 0.5655 GB, free: 448 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.745e-05/0.3974, allocations: 39.75 kB / 0.5655 GB, free: 408 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-05/0.3975, allocations: 37.7 kB / 0.5655 GB, free: 364 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.3976, allocations: 331 kB / 0.5659 GB, free: 24 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.3977, allocations: 39.97 kB / 0.5659 GB, free: 15.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.3979, allocations: 80.59 kB / 0.566 GB, free: 15.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002326/0.3981, allocations: 123.5 kB / 0.5661 GB, free: 15.76 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3981, allocations: 0 / 0.5661 GB, free: 15.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003168/0.3984, allocations: 165.5 kB / 0.5662 GB, free: 15.59 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.3984, allocations: 7.938 kB / 0.5663 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.3984, allocations: 4 kB / 0.5663 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.3985, allocations: 0 / 0.5663 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/0.3986, allocations: 19.98 kB / 0.5663 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.3986, allocations: 11.88 kB / 0.5663 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.001e-05/0.3987, allocations: 11.95 kB / 0.5663 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.3987, allocations: 4 kB / 0.5663 GB, free: 15.54 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.0001177/0.3988, allocations: 132.2 kB / 0.5664 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.03e-05/0.3988, allocations: 7.953 kB / 0.5664 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.309e-05/0.3988, allocations: 12.5 kB / 0.5664 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.3988, allocations: 0 / 0.5664 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-06/0.3989, allocations: 3.938 kB / 0.5665 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.3989, allocations: 3.984 kB / 0.5665 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006134/0.3995, allocations: 454.3 kB / 0.5669 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3995, allocations: 0 / 0.5669 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.924e-05/0.3995, allocations: 19.92 kB / 0.5669 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3995, allocations: 0 / 0.5669 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.3995, allocations: 0 / 0.5669 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3995, allocations: 3.938 kB / 0.5669 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3995, allocations: 0 / 0.5669 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003593/0.3999, allocations: 255.4 kB / 0.5672 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.215e-05/0.4, allocations: 89 kB / 0.5672 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.826e-05/0.4, allocations: 8 kB / 0.5672 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.4001, allocations: 11.98 kB / 0.5673 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.059e-05/0.4002, allocations: 7.984 kB / 0.5673 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/0.4002, allocations: 8 kB / 0.5673 GB, free: 14.44 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.972e-05/0.4003, allocations: 99.58 kB / 0.5674 GB, free: 14.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4003, allocations: 0 / 0.5674 GB, free: 14.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002579/0.4005, allocations: 24 kB / 0.5674 GB, free: 14.32 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.0001237/0.4006, allocations: 111.1 kB / 0.5675 GB, free: 14.2 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002903/0.4009, allocations: 107.4 kB / 0.5676 GB, free: 14.1 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4009, allocations: 0 / 0.5676 GB, free: 14.1 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.4011, allocations: 51.91 kB / 0.5676 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002674/0.4013, allocations: 8 kB / 0.5677 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004629/0.4018, allocations: 223.2 kB / 0.5679 GB, free: 13.79 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.4022, allocations: 0.6965 MB / 0.5685 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.17e-05/0.4022, allocations: 12.88 kB / 0.5686 GB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.945e-05/0.4022, allocations: 15.44 kB / 0.5686 GB, free: 13.04 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.4022, allocations: 3.938 kB / 0.5686 GB, free: 13.04 MB / 414.1 MB Notification: Performance of Templates: time 0.003947/0.4062, allocations: 1.055 MB / 0.5696 GB, free: 11.98 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 5.231302736327052]