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.001253/0.001253, allocations: 116.6 kB / 18.49 MB, free: 4.566 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.001289/0.001289, allocations: 189 kB / 21.43 MB, free: 1.641 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.385/1.385, allocations: 225.6 MB / 249.8 MB, free: 3.605 MB / 190.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.001536/0.001536, allocations: 43.94 kB / 366.3 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09364/0.09517, allocations: 52.14 MB / 418.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003017/0.09819, allocations: 1.606 MB / 420.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009242/0.09912, allocations: 0.4948 MB / 420.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.025e-05/0.0992, allocations: 0 / 420.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.864e-05/0.09924, allocations: 7.938 kB / 420.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001312/0.09938, allocations: 19.84 kB / 420.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002851/0.09966, allocations: 47.83 kB / 420.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001126/0.09977, allocations: 43.92 kB / 420.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.237e-05/0.09987, allocations: 12.17 kB / 420.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.996e-05/0.09995, allocations: 35.78 kB / 420.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.193e-05/0.1, allocations: 19.86 kB / 420.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.755e-05/0.1, allocations: 4 kB / 420.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.197e-05/0.1, allocations: 4 kB / 420.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.103e-05/0.1001, allocations: 23.92 kB / 420.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.418e-05/0.1001, allocations: 27.81 kB / 420.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.1003, allocations: 59.66 kB / 420.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1003, allocations: 0 / 420.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1003, allocations: 0 / 420.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.1003, allocations: 4 kB / 420.9 MB, free: 10.16 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.0005306/0.1008, allocations: 383 kB / 421.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.1009, allocations: 12.03 kB / 421.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.538e-05/0.1009, allocations: 4.125 kB / 421.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.768e-05/0.1009, allocations: 46.73 kB / 421.3 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.231e-05/0.1009, allocations: 12.89 kB / 421.3 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002524/0.1012, allocations: 194.3 kB / 421.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.1012, allocations: 4.375 kB / 421.5 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.303e-05/0.1012, allocations: 8.125 kB / 421.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002999/0.1015, allocations: 129.9 kB / 421.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.1015, allocations: 7.875 kB / 421.7 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.1015, allocations: 3.984 kB / 421.7 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.1015, allocations: 3.938 kB / 421.7 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.535e-05/0.1016, allocations: 27.97 kB / 421.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003681/0.102, allocations: 282.5 kB / 422 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002488/0.1023, allocations: 160.9 kB / 422.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.108e-05/0.1023, allocations: 38.62 kB / 422.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.1024, allocations: 0 / 422.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/0.1024, allocations: 34.56 kB / 422.2 MB, free: 8.605 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 9.51e-07/0.1024, allocations: 0 / 422.2 MB, free: 8.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.000291/0.1027, allocations: 101.5 kB / 422.3 MB, free: 8.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.214e-05/0.1028, allocations: 107.1 kB / 422.4 MB, free: 8.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001345/0.1029, allocations: 140.4 kB / 422.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.604e-05/0.1029, allocations: 25.7 kB / 422.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.879e-05/0.103, allocations: 92.12 kB / 422.7 MB, free: 8.098 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.195e-05/0.103, allocations: 11.94 kB / 422.7 MB, free: 8.086 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.344e-05/0.103, allocations: 21.67 kB / 422.7 MB, free: 8.059 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1032, allocations: 326.8 kB / 423 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.634e-05/0.1032, allocations: 19.98 kB / 423 MB, free: 7.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.669e-05/0.1033, allocations: 40.28 kB / 423.1 MB, free: 7.656 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001272/0.1034, allocations: 64.22 kB / 423.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1034, allocations: 0 / 423.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001736/0.1036, allocations: 85.55 kB / 423.2 MB, free: 7.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.1036, allocations: 8 kB / 423.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1036, allocations: 0 / 423.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.1036, allocations: 0 / 423.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.222e-05/0.1037, allocations: 11.98 kB / 423.2 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.1037, allocations: 7.938 kB / 423.3 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.182e-05/0.1038, allocations: 12.08 kB / 423.3 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-06/0.1038, allocations: 0 / 423.3 MB, free: 7.449 MB / 350.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 0.0001107/0.1039, allocations: 129.7 kB / 423.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.561e-05/0.104, allocations: 53.66 kB / 423.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.556e-05/0.104, allocations: 12.23 kB / 423.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.104, allocations: 4.281 kB / 423.5 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.104, allocations: 0 / 423.5 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.104, allocations: 3.984 kB / 423.5 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002064/0.1042, allocations: 177.6 kB / 423.6 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1042, allocations: 4 kB / 423.6 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.93e-05/0.1043, allocations: 19.81 kB / 423.7 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.1043, allocations: 4 kB / 423.7 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.1043, allocations: 3.984 kB / 423.7 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1043, allocations: 0 / 423.7 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.1043, allocations: 8 kB / 423.7 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002258/0.1045, allocations: 189.1 kB / 423.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.625e-05/0.1046, allocations: 89.05 kB / 424 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.1046, allocations: 11.94 kB / 424 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.086e-05/0.1047, allocations: 0 / 424 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.495e-05/0.1047, allocations: 7.984 kB / 424 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-06/0.1047, allocations: 0 / 424 MB, free: 6.633 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.85e-05/0.1048, allocations: 111.2 kB / 424.1 MB, free: 6.523 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1048, allocations: 0 / 424.1 MB, free: 6.523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002338/0.1051, allocations: 8 kB / 424.1 MB, free: 6.516 MB / 350.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.0006287/0.1057, allocations: 0.7497 MB / 424.8 MB, free: 5.734 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001666/0.1059, allocations: 47.97 kB / 424.9 MB, free: 5.688 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1059, allocations: 0 / 424.9 MB, free: 5.688 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.713e-05/0.1059, allocations: 15.98 kB / 424.9 MB, free: 5.672 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003241/0.1062, allocations: 22.27 kB / 424.9 MB, free: 5.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.1078, allocations: 1.455 MB / 426.4 MB, free: 4.082 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003387/0.1081, allocations: 0.7039 MB / 427.1 MB, free: 3.352 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.403e-05/0.1081, allocations: 7.984 kB / 427.1 MB, free: 3.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.527e-05/0.1082, allocations: 15.44 kB / 427.1 MB, free: 3.328 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1082, allocations: 0 / 427.1 MB, free: 3.328 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01715/0.1253, allocations: 1.835 MB / 428.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.836/7.961, allocations: 18.28 kB / 429 MB, free: 1.648 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.406694892968517]