Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 191.4 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 43.92 kB / 371.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2389, allocations: 52.19 MB / 423.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.002889/0.2418, allocations: 1.638 MB / 425 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000846/0.2426, allocations: 486.8 kB / 425.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.48e-05/0.2427, allocations: 3.938 kB / 425.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.189e-05/0.2428, allocations: 3.938 kB / 425.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001264/0.2429, allocations: 15.86 kB / 425.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002845/0.2432, allocations: 59.81 kB / 425.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001163/0.2433, allocations: 59.78 kB / 425.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.2434, allocations: 26.33 kB / 425.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.193e-05/0.2435, allocations: 31.86 kB / 425.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.265e-05/0.2435, allocations: 35.77 kB / 425.7 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.845e-05/0.2435, allocations: 4 kB / 425.7 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.546e-05/0.2436, allocations: 8 kB / 425.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.055e-05/0.2436, allocations: 15.94 kB / 425.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.138e-05/0.2437, allocations: 31.8 kB / 425.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001334/0.2438, allocations: 75.64 kB / 425.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2438, allocations: 0 / 425.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2438, allocations: 0 / 425.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.2438, allocations: 0 / 425.8 MB, free: 12.04 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.0004795/0.2443, allocations: 329.8 kB / 426.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.2443, allocations: 12.03 kB / 426.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.088e-05/0.2443, allocations: 192 / 426.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.719e-05/0.2444, allocations: 38.75 kB / 426.2 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.944e-05/0.2444, allocations: 8.891 kB / 426.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002164/0.2446, allocations: 146.2 kB / 426.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.2446, allocations: 8.375 kB / 426.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.631e-05/0.2446, allocations: 4.375 kB / 426.4 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003086/0.245, allocations: 148.3 kB / 426.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.245, allocations: 4 kB / 426.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.799e-06/0.245, allocations: 0 / 426.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.245, allocations: 0 / 426.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001083/0.2451, allocations: 39.91 kB / 426.6 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004417/0.2455, allocations: 272.7 kB / 426.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001965/0.2457, allocations: 77.14 kB / 426.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.152e-05/0.2458, allocations: 29.8 kB / 426.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.2458, allocations: 4 kB / 426.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001143/0.2459, allocations: 63.39 kB / 427 MB, free: 10.72 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.333e-06/0.2459, allocations: 0 / 427 MB, free: 10.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000289/0.2462, allocations: 113.7 kB / 427.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.293e-05/0.2463, allocations: 93.03 kB / 427.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.2464, allocations: 144.4 kB / 427.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.2464, allocations: 29.7 kB / 427.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.19e-05/0.2465, allocations: 104 kB / 427.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.048e-05/0.2465, allocations: 15.91 kB / 427.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.563e-05/0.2465, allocations: 29.7 kB / 427.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.2467, allocations: 314.8 kB / 427.8 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.485e-05/0.2467, allocations: 32.05 kB / 427.9 MB, free: 9.805 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.767e-05/0.2468, allocations: 61.12 kB / 427.9 MB, free: 9.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001461/0.247, allocations: 85.08 kB / 428 MB, free: 9.625 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.247, allocations: 0 / 428 MB, free: 9.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002018/0.2472, allocations: 113.4 kB / 428.1 MB, free: 9.508 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.2472, allocations: 6.5 kB / 428.1 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.2472, allocations: 4 kB / 428.1 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.2472, allocations: 160 / 428.1 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.949e-05/0.2473, allocations: 23.92 kB / 428.1 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.2473, allocations: 0 / 428.1 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.688e-05/0.2473, allocations: 8 kB / 428.1 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.2474, allocations: 11.92 kB / 428.2 MB, free: 9.457 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.0001003/0.2475, allocations: 127.7 kB / 428.3 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.189e-05/0.2475, allocations: 57.59 kB / 428.3 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.403e-05/0.2476, allocations: 12.41 kB / 428.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.2476, allocations: 0 / 428.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.2476, allocations: 0 / 428.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.2476, allocations: 4 kB / 428.4 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003417/0.2479, allocations: 313.5 kB / 428.7 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2479, allocations: 0 / 428.7 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.502e-05/0.248, allocations: 12.22 kB / 428.7 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.248, allocations: 4 kB / 428.7 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.248, allocations: 4 kB / 428.7 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.248, allocations: 8.062 kB / 428.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.248, allocations: 0 / 428.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000225/0.2482, allocations: 204.2 kB / 428.9 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.524e-05/0.2483, allocations: 23.89 kB / 428.9 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/0.2483, allocations: 4 kB / 428.9 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.283e-05/0.2484, allocations: 11.94 kB / 428.9 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.141e-05/0.2484, allocations: 3.984 kB / 428.9 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.305e-06/0.2484, allocations: 4 kB / 428.9 MB, free: 8.594 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.134e-05/0.2485, allocations: 106.7 kB / 429 MB, free: 8.492 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2485, allocations: 4.094 kB / 429 MB, free: 8.488 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002331/0.2487, allocations: 19.92 kB / 429.1 MB, free: 8.469 MB / 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.0006053/0.2493, allocations: 0.7601 MB / 429.8 MB, free: 7.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001872/0.2495, allocations: 67.97 kB / 429.9 MB, free: 7.613 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.2495, allocations: 0 / 429.9 MB, free: 7.613 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.865e-05/0.2496, allocations: 19.92 kB / 429.9 MB, free: 7.594 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003147/0.2499, allocations: 27.95 kB / 429.9 MB, free: 7.566 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.2514, allocations: 1.562 MB / 431.5 MB, free: 5.891 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.023e-05/0.2515, allocations: 88.98 kB / 431.6 MB, free: 5.781 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.703e-05/0.2515, allocations: 8.656 kB / 431.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.596e-05/0.2516, allocations: 23.44 kB / 431.6 MB, free: 5.75 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2516, allocations: 0 / 431.6 MB, free: 5.75 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02185/0.2734, allocations: 2.236 MB / 433.9 MB, free: 3.66 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/10.73, allocations: 11.64 kB / 433.9 MB, free: 3.652 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,triggeredSampler.y Variables in the result:clockToTrigger.u,clockToTrigger.y,clockToTrigger.y2,clockToTrigger.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(clockToTrigger.y2),sample1.u,sample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time,triggeredSampler.trigger,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start [Calling sys.exit(0), Time elapsed: 13.13766345800832]