Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.001217/0.001217, allocations: 108.6 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.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.001295/0.001295, allocations: 187.8 kB / 24.5 MB, free: 4.02 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.35/1.35, allocations: 225.7 MB / 253.3 MB, free: 13.04 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.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 51.92 kB / 371.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.228, allocations: 52.18 MB / 423.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002787/0.2308, allocations: 1.618 MB / 425 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008294/0.2316, allocations: 0.4909 MB / 425.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.49e-05/0.2317, allocations: 7.938 kB / 425.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.655e-05/0.2317, allocations: 3.938 kB / 425.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001252/0.2318, allocations: 11.92 kB / 425.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002672/0.2321, allocations: 51.83 kB / 425.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001117/0.2322, allocations: 51.78 kB / 425.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.999e-05/0.2323, allocations: 12.17 kB / 425.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.139e-05/0.2324, allocations: 23.92 kB / 425.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.74e-05/0.2324, allocations: 31.78 kB / 425.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.562e-05/0.2325, allocations: 8 kB / 425.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.437e-05/0.2325, allocations: 4 kB / 425.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.81e-05/0.2325, allocations: 15.92 kB / 425.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.926e-05/0.2326, allocations: 23.81 kB / 425.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.2327, allocations: 64.52 kB / 425.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.2327, allocations: 3.984 kB / 425.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2327, allocations: 0 / 425.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.2327, allocations: 0 / 425.8 MB, free: 12.21 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004486/0.2331, allocations: 302 kB / 426.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.2332, allocations: 12.03 kB / 426.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.37e-05/0.2332, allocations: 4.188 kB / 426.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.218e-05/0.2332, allocations: 38.75 kB / 426.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.056e-05/0.2333, allocations: 12.88 kB / 426.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002101/0.2335, allocations: 142.2 kB / 426.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.456e-06/0.2335, allocations: 384 / 426.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.623e-05/0.2335, allocations: 12.12 kB / 426.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000282/0.2338, allocations: 137.8 kB / 426.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.2338, allocations: 0 / 426.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-06/0.2338, allocations: 4 kB / 426.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2338, allocations: 0 / 426.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.565e-05/0.2339, allocations: 31.86 kB / 426.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003375/0.2342, allocations: 253.7 kB / 426.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000183/0.2344, allocations: 75.72 kB / 426.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.619e-05/0.2345, allocations: 42.69 kB / 426.9 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.96e-05/0.2345, allocations: 3.938 kB / 426.9 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.2345, allocations: 34.56 kB / 426.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.012e-06/0.2345, allocations: 0 / 426.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002717/0.2348, allocations: 97.88 kB / 427 MB, free: 10.85 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.873e-05/0.2349, allocations: 114.8 kB / 427.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.235, allocations: 144.5 kB / 427.3 MB, free: 10.56 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.2351, allocations: 25.7 kB / 427.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.6e-05/0.2351, allocations: 88.14 kB / 427.4 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.893e-05/0.2351, allocations: 7.953 kB / 427.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.449e-05/0.2352, allocations: 29.66 kB / 427.4 MB, free: 10.4 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.2353, allocations: 322.8 kB / 427.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.803e-05/0.2354, allocations: 11.98 kB / 427.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.158e-05/0.2354, allocations: 48.28 kB / 427.8 MB, free: 10 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001106/0.2355, allocations: 60.22 kB / 427.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.2356, allocations: 4 kB / 427.9 MB, free: 9.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001621/0.2357, allocations: 81.55 kB / 427.9 MB, free: 9.836 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.2357, allocations: 7.438 kB / 427.9 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2357, allocations: 3.938 kB / 427.9 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.2357, allocations: 4 kB / 427.9 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.762e-05/0.2358, allocations: 16.11 kB / 428 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.2358, allocations: 0 / 428 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.296e-05/0.2359, allocations: 11.95 kB / 428 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.2359, allocations: 7.984 kB / 428 MB, free: 9.789 MB / 334.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: 3 (clockToSquareWave.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 9.937e-05/0.236, allocations: 121.7 kB / 428.1 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.387e-05/0.2361, allocations: 57.64 kB / 428.2 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.701e-05/0.2361, allocations: 12.34 kB / 428.2 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.2361, allocations: 0 / 428.2 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.2361, allocations: 0 / 428.2 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.2361, allocations: 8 kB / 428.2 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002045/0.2363, allocations: 156.6 kB / 428.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2363, allocations: 0 / 428.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.584e-05/0.2364, allocations: 11.98 kB / 428.3 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2364, allocations: 0 / 428.3 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.575e-06/0.2364, allocations: 0 / 428.3 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.2364, allocations: 7.938 kB / 428.4 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2364, allocations: 3.938 kB / 428.4 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002197/0.2366, allocations: 189.1 kB / 428.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.858e-05/0.2366, allocations: 15.94 kB / 428.6 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.2367, allocations: 4 kB / 428.6 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.001e-05/0.2367, allocations: 4 kB / 428.6 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.585e-05/0.2368, allocations: 3.984 kB / 428.6 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.251e-06/0.2368, allocations: 4 kB / 428.6 MB, free: 9.113 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001299/0.2369, allocations: 111.2 kB / 428.7 MB, free: 9.004 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2369, allocations: 0 / 428.7 MB, free: 9.004 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002259/0.2371, allocations: 8 kB / 428.7 MB, free: 8.996 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0005955/0.2377, allocations: 0.7493 MB / 429.4 MB, free: 8.215 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001574/0.2379, allocations: 44.02 kB / 429.5 MB, free: 8.172 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.2379, allocations: 0 / 429.5 MB, free: 8.172 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.748e-05/0.2379, allocations: 19.92 kB / 429.5 MB, free: 8.152 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.2382, allocations: 29.05 kB / 429.5 MB, free: 8.129 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.2399, allocations: 1.453 MB / 431 MB, free: 6.559 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/0.2402, allocations: 0.7 MB / 431.7 MB, free: 5.832 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.394e-05/0.2402, allocations: 7.984 kB / 431.7 MB, free: 5.824 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.677e-05/0.2403, allocations: 15.44 kB / 431.7 MB, free: 5.809 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2403, allocations: 0 / 431.7 MB, free: 5.809 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02593/0.2662, allocations: 1.934 MB / 433.6 MB, free: 4.027 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/10.9, allocations: 3.125 kB / 433.6 MB, free: 4.027 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,clockToSquareWave.y Variables in the result:clockToSquareWave.u,clockToSquareWave.y,clockToSquareWave.y2,clockToSquareWave.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(clockToSquareWave.y2),sample1.u,sample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.29779805400176]