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.001312/0.001312, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001592/0.001592, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.462/1.462, allocations: 230.6 MB / 257.5 MB, free: 8 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 51.92 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/0.2894, allocations: 53.35 MB / 431.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002987/0.2924, allocations: 1.631 MB / 432.8 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.2935, allocations: 0.5609 MB / 433.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.518e-05/0.2936, allocations: 8 kB / 433.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.982e-05/0.2936, allocations: 11.81 kB / 433.4 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001331/0.2937, allocations: 11.92 kB / 433.4 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004045/0.2941, allocations: 63.81 kB / 433.4 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00013/0.2943, allocations: 47.84 kB / 433.5 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.2944, allocations: 11.98 kB / 433.5 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001357/0.2945, allocations: 39.78 kB / 433.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.814e-05/0.2946, allocations: 19.86 kB / 433.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.354e-05/0.2946, allocations: 4 kB / 433.5 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.066e-05/0.2946, allocations: 8 kB / 433.6 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.942e-05/0.2947, allocations: 15.98 kB / 433.6 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.699e-05/0.2947, allocations: 35.73 kB / 433.6 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001631/0.2949, allocations: 68.08 kB / 433.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2949, allocations: 0 / 433.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2949, allocations: 3.938 kB / 433.7 MB, free: 4.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.2949, allocations: 0 / 433.7 MB, free: 4.328 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.0005406/0.2954, allocations: 308.9 kB / 434 MB, free: 4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.2955, allocations: 12.03 kB / 434 MB, free: 3.988 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.629e-05/0.2955, allocations: 42.67 kB / 434 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.2957, allocations: 20.89 kB / 434.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002584/0.296, allocations: 138.4 kB / 434.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.947e-06/0.296, allocations: 4.375 kB / 434.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.375e-05/0.296, allocations: 384 / 434.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003242/0.2963, allocations: 145.9 kB / 434.3 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.2963, allocations: 0 / 434.3 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.2963, allocations: 0 / 434.3 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.2963, allocations: 4 kB / 434.3 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.871e-05/0.2964, allocations: 23.92 kB / 434.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000407/0.2968, allocations: 261.6 kB / 434.6 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002077/0.297, allocations: 75.72 kB / 434.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.762e-05/0.2971, allocations: 42.69 kB / 434.7 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.2972, allocations: 4 kB / 434.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.2972, allocations: 30.56 kB / 434.8 MB, free: 3.062 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.173e-06/0.2972, allocations: 0 / 434.8 MB, free: 3.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003184/0.2975, allocations: 93.55 kB / 434.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.2976, allocations: 115 kB / 435 MB, free: 2.828 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.2978, allocations: 145.8 kB / 435.1 MB, free: 2.676 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.2978, allocations: 25.7 kB / 435.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.482e-05/0.2978, allocations: 84.14 kB / 435.2 MB, free: 2.559 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.94e-05/0.2979, allocations: 19.88 kB / 435.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-05/0.2979, allocations: 21.67 kB / 435.3 MB, free: 2.512 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.2981, allocations: 326.8 kB / 435.6 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.964e-05/0.2981, allocations: 8 kB / 435.6 MB, free: 2.176 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.19e-05/0.2982, allocations: 52.28 kB / 435.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001234/0.2983, allocations: 68.39 kB / 435.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2983, allocations: 0 / 435.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001697/0.2985, allocations: 85.53 kB / 435.8 MB, free: 1.938 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.2985, allocations: 8 kB / 435.8 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.2985, allocations: 0 / 435.8 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.2985, allocations: 4 kB / 435.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.198e-05/0.2986, allocations: 8 kB / 435.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.2986, allocations: 3.938 kB / 435.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.526e-05/0.2987, allocations: 20.06 kB / 435.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.487e-06/0.2987, allocations: 4 kB / 435.8 MB, free: 1.891 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 0.0001035/0.2988, allocations: 125.7 kB / 436 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.508e-05/0.2989, allocations: 53.64 kB / 436 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.959e-05/0.2989, allocations: 12.34 kB / 436 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.2989, allocations: 7.922 kB / 436 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.2989, allocations: 0 / 436 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.2989, allocations: 4 kB / 436 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001947/0.2991, allocations: 148.7 kB / 436.2 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.2991, allocations: 4 kB / 436.2 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.06e-05/0.2992, allocations: 15.92 kB / 436.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.2992, allocations: 0 / 436.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.2992, allocations: 0 / 436.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.2992, allocations: 4 kB / 436.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.2992, allocations: 0 / 436.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002341/0.2994, allocations: 189.1 kB / 436.4 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.249e-05/0.2995, allocations: 15.94 kB / 436.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.029e-05/0.2995, allocations: 4 kB / 436.4 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.38e-05/0.2995, allocations: 7.984 kB / 436.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.901e-05/0.2996, allocations: 3.938 kB / 436.4 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.2996, allocations: 4 kB / 436.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.452e-05/0.2997, allocations: 110 kB / 436.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2997, allocations: 0 / 436.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002348/0.2999, allocations: 12 kB / 436.5 MB, free: 1.098 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.0005871/0.3005, allocations: 0.7493 MB / 437.3 MB, free: 324 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000162/0.3007, allocations: 51.91 kB / 437.3 MB, free: 272 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.676e-06/0.3007, allocations: 4 kB / 437.3 MB, free: 268 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.957e-05/0.3007, allocations: 8 kB / 437.4 MB, free: 260 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003474/0.3011, allocations: 32.33 kB / 437.4 MB, free: 228 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.3026, allocations: 1.468 MB / 438.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.303, allocations: 0.6924 MB / 439.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.795e-05/0.303, allocations: 11.77 kB / 439.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.896e-05/0.3031, allocations: 19.44 kB / 439.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3031, allocations: 3.938 kB / 439.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03094/0.334, allocations: 1.921 MB / 441.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.35, allocations: 11.8 kB / 441.5 MB, free: 12.1 MB / 350.1 MB " [Timeout remaining time 649] (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] Reference file matches [Calling sys.exit(0), Time elapsed: 13.822826528921723]