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.001231/0.001231, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001456/0.001456, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.38/1.38, allocations: 230.6 MB / 258.3 MB, free: 8.02 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 47.92 kB / 378.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2325, allocations: 53.36 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.002999/0.2355, allocations: 1.678 MB / 433.6 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.2366, allocations: 0.5881 MB / 434.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.128e-05/0.2367, allocations: 0 / 434.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.848e-05/0.2367, allocations: 11.86 kB / 434.2 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001259/0.2368, allocations: 11.88 kB / 434.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003372/0.2372, allocations: 67.8 kB / 434.3 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001313/0.2373, allocations: 63.84 kB / 434.3 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.68e-05/0.2374, allocations: 20.16 kB / 434.4 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.2375, allocations: 39.84 kB / 434.4 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.241e-05/0.2376, allocations: 31.84 kB / 434.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.2376, allocations: 7.938 kB / 434.4 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.14e-05/0.2376, allocations: 12 kB / 434.5 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.935e-05/0.2377, allocations: 23.91 kB / 434.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.53e-05/0.2377, allocations: 35.8 kB / 434.5 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001751/0.2379, allocations: 81.22 kB / 434.6 MB, free: 4.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2379, allocations: 0 / 434.6 MB, free: 4.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2379, allocations: 0 / 434.6 MB, free: 4.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.2379, allocations: 8 kB / 434.6 MB, free: 4.172 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.0004766/0.2384, allocations: 321.9 kB / 434.9 MB, free: 3.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.2384, allocations: 8.031 kB / 434.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.399e-05/0.2385, allocations: 4.188 kB / 434.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.377e-05/0.2385, allocations: 38.73 kB / 435 MB, free: 3.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.2387, allocations: 24.83 kB / 435 MB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002552/0.2389, allocations: 150.9 kB / 435.1 MB, free: 3.574 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.055e-05/0.2389, allocations: 4.125 kB / 435.1 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.645e-05/0.2389, allocations: 8 kB / 435.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000297/0.2392, allocations: 136.9 kB / 435.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.2392, allocations: 7.938 kB / 435.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.2393, allocations: 8 kB / 435.3 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.2393, allocations: 0 / 435.3 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001084/0.2394, allocations: 31.97 kB / 435.3 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005331/0.2399, allocations: 280.6 kB / 435.6 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001997/0.2401, allocations: 73.2 kB / 435.7 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.874e-05/0.2402, allocations: 33.8 kB / 435.7 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.2402, allocations: 3.984 kB / 435.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001311/0.2403, allocations: 67.3 kB / 435.8 MB, free: 2.832 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.452e-06/0.2403, allocations: 4 kB / 435.8 MB, free: 2.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003038/0.2406, allocations: 117.7 kB / 435.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.146e-05/0.2407, allocations: 89.08 kB / 436 MB, free: 2.602 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.2408, allocations: 152 kB / 436.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.2409, allocations: 25.7 kB / 436.2 MB, free: 2.414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.867e-05/0.2409, allocations: 96.12 kB / 436.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.197e-05/0.2409, allocations: 11.91 kB / 436.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.059e-05/0.241, allocations: 37.66 kB / 436.3 MB, free: 2.262 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.2411, allocations: 322.8 kB / 436.6 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.399e-05/0.2412, allocations: 19.98 kB / 436.6 MB, free: 1.918 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.644e-05/0.2413, allocations: 57.39 kB / 436.7 MB, free: 1.844 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.2414, allocations: 97.02 kB / 436.8 MB, free: 1.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2414, allocations: 0 / 436.8 MB, free: 1.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002321/0.2417, allocations: 117.6 kB / 436.9 MB, free: 1.609 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.2417, allocations: 4 kB / 436.9 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.2417, allocations: 4 kB / 436.9 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.2417, allocations: 3.938 kB / 436.9 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.865e-05/0.2418, allocations: 12 kB / 436.9 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.2418, allocations: 7.922 kB / 436.9 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.699e-05/0.2419, allocations: 11.94 kB / 436.9 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.2419, allocations: 7.938 kB / 437 MB, free: 1.559 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.0001072/0.242, allocations: 122.5 kB / 437.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.051e-05/0.242, allocations: 57.67 kB / 437.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.589e-05/0.2421, allocations: 16.39 kB / 437.1 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.2421, allocations: 3.938 kB / 437.1 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2421, allocations: 0 / 437.1 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.2421, allocations: 0 / 437.1 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004094/0.2425, allocations: 317.5 kB / 437.5 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.2425, allocations: 3.938 kB / 437.5 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.415e-05/0.2426, allocations: 8 kB / 437.5 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.2426, allocations: 7.984 kB / 437.5 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.196e-06/0.2426, allocations: 4 kB / 437.5 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.2426, allocations: 3.938 kB / 437.5 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2426, allocations: 0 / 437.5 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002441/0.2428, allocations: 208.4 kB / 437.7 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.152e-05/0.2429, allocations: 15.88 kB / 437.7 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.279e-05/0.2429, allocations: 8 kB / 437.7 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.95e-05/0.243, allocations: 7.984 kB / 437.7 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.04e-05/0.243, allocations: 4 kB / 437.7 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.321e-06/0.243, allocations: 0 / 437.7 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.38e-05/0.2431, allocations: 118.6 kB / 437.8 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2431, allocations: 0 / 437.8 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000238/0.2433, allocations: 15.95 kB / 437.9 MB, free: 0.5703 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.0006761/0.244, allocations: 0.7718 MB / 438.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000179/0.2442, allocations: 63.84 kB / 438.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2442, allocations: 0 / 438.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.935e-05/0.2442, allocations: 19.98 kB / 438.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/0.2445, allocations: 30.25 kB / 438.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.2463, allocations: 1.556 MB / 440.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003376/0.2466, allocations: 0.7002 MB / 441 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.847e-05/0.2467, allocations: 8.422 kB / 441 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6e-05/0.2467, allocations: 27.44 kB / 441 MB, free: 13.22 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2467, allocations: 384 / 441 MB, free: 13.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02204/0.2688, allocations: 2.224 MB / 443.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/10.77, allocations: 7.969 kB / 443.3 MB, free: 11.15 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] "" 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.continuous,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.196232730988413]