Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.001232/0.001232, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.001328/0.001328, allocations: 218.9 kB / 21.46 MB, free: 1.605 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.413/1.413, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 51.92 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1071, allocations: 53.33 MB / 427 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003557/0.1107, allocations: 1.607 MB / 428.6 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.112, allocations: 0.561 MB / 429.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.706e-05/0.1121, allocations: 4 kB / 429.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.169e-05/0.1121, allocations: 7.875 kB / 429.2 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001476/0.1123, allocations: 19.91 kB / 429.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003714/0.1127, allocations: 59.75 kB / 429.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001401/0.1128, allocations: 51.86 kB / 429.3 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.9e-05/0.1129, allocations: 15.97 kB / 429.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.113, allocations: 27.86 kB / 429.4 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.22e-05/0.1131, allocations: 23.86 kB / 429.4 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.699e-05/0.1131, allocations: 4 kB / 429.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.579e-05/0.1132, allocations: 8 kB / 429.4 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.423e-05/0.1132, allocations: 19.91 kB / 429.4 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.992e-05/0.1133, allocations: 31.73 kB / 429.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.1135, allocations: 67.73 kB / 429.5 MB, free: 2.254 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1135, allocations: 3.938 kB / 429.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1135, allocations: 0 / 429.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.71e-06/0.1135, allocations: 0 / 429.5 MB, free: 2.25 MB / 350.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.0005601/0.114, allocations: 394.9 kB / 429.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.1141, allocations: 12.03 kB / 429.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.13e-05/0.1141, allocations: 192 / 429.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.518e-05/0.1141, allocations: 30.75 kB / 430 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/0.1143, allocations: 24.88 kB / 430 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002852/0.1146, allocations: 200.2 kB / 430.2 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.1146, allocations: 8.375 kB / 430.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.1146, allocations: 384 / 430.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003578/0.1149, allocations: 141.8 kB / 430.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.115, allocations: 3.938 kB / 430.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.517e-06/0.115, allocations: 0 / 430.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.115, allocations: 4 kB / 430.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.075e-05/0.1151, allocations: 19.98 kB / 430.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000401/0.1155, allocations: 290.5 kB / 430.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000238/0.1157, allocations: 152.8 kB / 430.8 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.1159, allocations: 38.62 kB / 430.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.651e-05/0.1159, allocations: 8 kB / 430.8 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.1159, allocations: 34.55 kB / 430.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.1159, allocations: 0 / 430.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002936/0.1162, allocations: 93.5 kB / 431 MB, free: 0.582 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000133/0.1163, allocations: 119 kB / 431.1 MB, free: 452 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.1165, allocations: 139.5 kB / 431.2 MB, free: 304 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001071/0.1166, allocations: 25.7 kB / 431.2 MB, free: 272 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.725e-05/0.1166, allocations: 92.12 kB / 431.3 MB, free: 176 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.164e-05/0.1167, allocations: 11.89 kB / 431.3 MB, free: 164 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.102e-05/0.1167, allocations: 17.72 kB / 431.4 MB, free: 140 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002546/0.117, allocations: 326.8 kB / 431.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.289e-05/0.117, allocations: 12 kB / 431.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.666e-05/0.1171, allocations: 44.28 kB / 431.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001226/0.1172, allocations: 68.2 kB / 431.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1172, allocations: 0 / 431.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001833/0.1174, allocations: 89.73 kB / 431.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.1174, allocations: 8 kB / 431.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.1174, allocations: 0 / 431.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.1174, allocations: 4 kB / 431.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7e-05/0.1175, allocations: 11.92 kB / 431.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.1175, allocations: 4 kB / 431.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.202e-05/0.1175, allocations: 16.06 kB / 431.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.1176, allocations: 0 / 431.9 MB, free: 15.52 MB / 366.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.954e-05/0.1177, allocations: 125.7 kB / 432 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.491e-05/0.1177, allocations: 57.64 kB / 432.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.932e-05/0.1178, allocations: 16.23 kB / 432.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1178, allocations: 0 / 432.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1178, allocations: 0 / 432.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1178, allocations: 0 / 432.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002051/0.118, allocations: 181.5 kB / 432.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.118, allocations: 4 kB / 432.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.957e-05/0.1181, allocations: 12 kB / 432.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.1181, allocations: 0 / 432.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.1181, allocations: 0 / 432.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.1181, allocations: 4 kB / 432.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.1181, allocations: 7.922 kB / 432.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002281/0.1183, allocations: 197.1 kB / 432.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.389e-05/0.1184, allocations: 97.05 kB / 432.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.1184, allocations: 0 / 432.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.226e-05/0.1185, allocations: 4 kB / 432.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.3e-05/0.1185, allocations: 0 / 432.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.1185, allocations: 4 kB / 432.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001366/0.1186, allocations: 113.1 kB / 432.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1186, allocations: 0 / 432.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002354/0.1189, allocations: 11.94 kB / 432.7 MB, free: 14.59 MB / 366.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.0006176/0.1195, allocations: 0.7575 MB / 433.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001659/0.1197, allocations: 48.03 kB / 433.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1197, allocations: 4 kB / 433.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.277e-05/0.1197, allocations: 7.984 kB / 433.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/0.12, allocations: 32 kB / 433.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.1217, allocations: 1.45 MB / 435 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.122, allocations: 0.7002 MB / 435.7 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.831e-05/0.1221, allocations: 8.062 kB / 435.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.529e-05/0.1221, allocations: 27.36 kB / 435.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of SimCode: time 8.22e-07/0.1221, allocations: 0 / 435.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01849/0.1406, allocations: 1.85 MB / 437.6 MB, free: 9.711 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.77/7.911, allocations: 3.859 kB / 437.6 MB, free: 9.707 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 10.484347701014485]