Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.002098/0.002098, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001402/0.001402, allocations: 209 kB / 23.73 MB, free: 4.523 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.42/1.42, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 51.86 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2647, allocations: 53.36 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003056/0.2677, allocations: 1.658 MB / 432.7 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001077/0.2688, allocations: 0.5337 MB / 433.3 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.995e-05/0.2689, allocations: 3.938 kB / 433.3 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.808e-05/0.2689, allocations: 3.938 kB / 433.3 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001291/0.2691, allocations: 19.84 kB / 433.3 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003342/0.2694, allocations: 75 kB / 433.4 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001263/0.2695, allocations: 67.78 kB / 433.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.2696, allocations: 20.2 kB / 433.5 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001184/0.2697, allocations: 31.86 kB / 433.5 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.914e-05/0.2698, allocations: 31.84 kB / 433.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.506e-05/0.2698, allocations: 4 kB / 433.5 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.26e-05/0.2699, allocations: 12 kB / 433.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.303e-05/0.2699, allocations: 23.91 kB / 433.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.429e-05/0.27, allocations: 27.75 kB / 433.6 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001655/0.2701, allocations: 89.27 kB / 433.7 MB, free: 4.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2701, allocations: 0 / 433.7 MB, free: 4.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2701, allocations: 7.938 kB / 433.7 MB, free: 4.035 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.2701, allocations: 0 / 433.7 MB, free: 4.035 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005016/0.2706, allocations: 313.9 kB / 434 MB, free: 3.699 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.2707, allocations: 12.03 kB / 434 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.927e-05/0.2707, allocations: 38.73 kB / 434 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001471/0.2709, allocations: 20.84 kB / 434.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.2711, allocations: 157.1 kB / 434.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.2711, allocations: 384 / 434.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.651e-05/0.2712, allocations: 15.94 kB / 434.2 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003114/0.2715, allocations: 147.5 kB / 434.4 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.2715, allocations: 0 / 434.4 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.2715, allocations: 0 / 434.4 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.2715, allocations: 4 kB / 434.4 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001158/0.2716, allocations: 35.91 kB / 434.4 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004535/0.2721, allocations: 268.8 kB / 434.7 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002189/0.2723, allocations: 73.23 kB / 434.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.132e-05/0.2724, allocations: 37.69 kB / 434.8 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.2724, allocations: 0 / 434.8 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001232/0.2725, allocations: 63.36 kB / 434.8 MB, free: 2.715 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.313e-06/0.2725, allocations: 0 / 434.8 MB, free: 2.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003136/0.2728, allocations: 121.5 kB / 435 MB, free: 2.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.731e-05/0.2729, allocations: 89.3 kB / 435 MB, free: 2.484 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.273, allocations: 152.7 kB / 435.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.2731, allocations: 29.7 kB / 435.2 MB, free: 2.293 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.689e-05/0.2731, allocations: 88.14 kB / 435.3 MB, free: 2.203 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.314e-05/0.2731, allocations: 23.77 kB / 435.3 MB, free: 2.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.801e-05/0.2732, allocations: 33.67 kB / 435.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.2733, allocations: 318.8 kB / 435.7 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.21e-05/0.2734, allocations: 20.23 kB / 435.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.662e-05/0.2735, allocations: 65.14 kB / 435.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001529/0.2736, allocations: 89.08 kB / 435.9 MB, free: 1.613 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2736, allocations: 0 / 435.9 MB, free: 1.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002088/0.2738, allocations: 117.5 kB / 436 MB, free: 1.492 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.2739, allocations: 4 kB / 436 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.2739, allocations: 12.14 kB / 436 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.2739, allocations: 0 / 436 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.558e-05/0.274, allocations: 23.86 kB / 436 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.274, allocations: 0 / 436 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.499e-05/0.274, allocations: 7.938 kB / 436 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.274, allocations: 4 kB / 436 MB, free: 1.441 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler.y,$PRE.triggeredSampler.y,clockToTrigger.y3,$PRE.clockToTrigger.y3,triggeredSampler.trigger,$whenCondition1,$CLKPRE.clockToTrigger.y2,clockToTrigger.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.0001147/0.2742, allocations: 129.8 kB / 436.1 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.451e-05/0.2742, allocations: 53.59 kB / 436.2 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.572e-05/0.2743, allocations: 20.39 kB / 436.2 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.2743, allocations: 3.938 kB / 436.2 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2743, allocations: 4 kB / 436.2 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2743, allocations: 0 / 436.2 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003799/0.2747, allocations: 309.6 kB / 436.5 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.2747, allocations: 4 kB / 436.5 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.439e-05/0.2747, allocations: 7.938 kB / 436.5 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.2747, allocations: 4 kB / 436.5 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.2747, allocations: 3.984 kB / 436.5 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.2747, allocations: 3.938 kB / 436.5 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2747, allocations: 128 / 436.5 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002356/0.275, allocations: 204.3 kB / 436.7 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.68e-05/0.275, allocations: 27.81 kB / 436.8 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.275, allocations: 4 kB / 436.8 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.403e-05/0.2751, allocations: 7.984 kB / 436.8 MB, free: 0.582 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.329e-05/0.2752, allocations: 0 / 436.8 MB, free: 0.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.298e-06/0.2752, allocations: 4 kB / 436.8 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.847e-05/0.2753, allocations: 115.2 kB / 436.9 MB, free: 476 kB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2753, allocations: 0 / 436.9 MB, free: 476 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002366/0.2755, allocations: 15.95 kB / 436.9 MB, free: 460 kB / 334.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: 5 (clockToTrigger.y2,triggeredSampler.trigger,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006546/0.2761, allocations: 0.7757 MB / 437.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000188/0.2763, allocations: 59.91 kB / 437.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2763, allocations: 0 / 437.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.825e-05/0.2764, allocations: 19.98 kB / 437.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003286/0.2767, allocations: 33.81 kB / 437.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.2783, allocations: 1.552 MB / 439.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.268e-05/0.2784, allocations: 84.98 kB / 439.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.726e-05/0.2784, allocations: 4.438 kB / 439.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.578e-05/0.2785, allocations: 31.36 kB / 439.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2785, allocations: 4 kB / 439.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02771/0.3062, allocations: 2.63 MB / 442.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/10.68, allocations: 6.641 kB / 442.1 MB, free: 11.23 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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: 13.064831998985028]