Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001779/0.001779, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002137/0.002137, allocations: 217.6 kB / 24.53 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 230.5 MB / 258.2 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 63.91 kB / 378.6 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.2716, allocations: 53.4 MB / 432 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.00283/0.2745, allocations: 1.615 MB / 433.6 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.2755, allocations: 0.5648 MB / 434.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.001e-05/0.2756, allocations: 0 / 434.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.366e-05/0.2757, allocations: 15.86 kB / 434.2 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001642/0.2758, allocations: 11.88 kB / 434.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003754/0.2762, allocations: 71.67 kB / 434.3 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001079/0.2763, allocations: 43.91 kB / 434.3 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.634e-05/0.2764, allocations: 12 kB / 434.3 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.2765, allocations: 39.78 kB / 434.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.5e-05/0.2766, allocations: 19.86 kB / 434.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.536e-05/0.2766, allocations: 4 kB / 434.4 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.128e-05/0.2767, allocations: 8 kB / 434.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.843e-05/0.2767, allocations: 15.98 kB / 434.4 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.962e-05/0.2768, allocations: 35.72 kB / 434.4 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001649/0.2769, allocations: 68.09 kB / 434.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2769, allocations: 0 / 434.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2769, allocations: 0 / 434.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.411e-06/0.2769, allocations: 0 / 434.5 MB, free: 4.18 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.0004607/0.2774, allocations: 313.9 kB / 434.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.2774, allocations: 12.03 kB / 434.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.258e-05/0.2774, allocations: 192 / 434.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.392e-05/0.2775, allocations: 34.75 kB / 434.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001508/0.2776, allocations: 28.88 kB / 434.9 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.2779, allocations: 141.1 kB / 435 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.2779, allocations: 4.375 kB / 435 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.2779, allocations: 4.375 kB / 435 MB, free: 3.594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003085/0.2782, allocations: 141.7 kB / 435.2 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.2782, allocations: 3.938 kB / 435.2 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.2782, allocations: 7.984 kB / 435.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.2782, allocations: 4 kB / 435.2 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.911e-05/0.2783, allocations: 19.98 kB / 435.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000373/0.2787, allocations: 253.6 kB / 435.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002071/0.2789, allocations: 79.83 kB / 435.5 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.036e-05/0.279, allocations: 38.56 kB / 435.6 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.279, allocations: 8 kB / 435.6 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.279, allocations: 34.55 kB / 435.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.279, allocations: 0 / 435.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003033/0.2793, allocations: 105.4 kB / 435.7 MB, free: 2.789 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.762e-05/0.2794, allocations: 107.1 kB / 435.8 MB, free: 2.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.2795, allocations: 141.8 kB / 436 MB, free: 2.512 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.2796, allocations: 25.7 kB / 436 MB, free: 2.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.44e-05/0.2796, allocations: 92.12 kB / 436.1 MB, free: 2.387 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.2796, allocations: 11.89 kB / 436.1 MB, free: 2.375 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.024e-05/0.2797, allocations: 17.72 kB / 436.1 MB, free: 2.352 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.2798, allocations: 326.8 kB / 436.4 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.871e-05/0.2799, allocations: 15.98 kB / 436.4 MB, free: 2.008 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.851e-05/0.28, allocations: 48.28 kB / 436.5 MB, free: 1.945 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.2801, allocations: 56.22 kB / 436.5 MB, free: 1.875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2801, allocations: 4 kB / 436.5 MB, free: 1.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001757/0.2803, allocations: 89.5 kB / 436.6 MB, free: 1.777 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.2803, allocations: 4 kB / 436.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.2803, allocations: 0 / 436.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.2803, allocations: 4 kB / 436.6 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.543e-05/0.2804, allocations: 19.92 kB / 436.7 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.2804, allocations: 0 / 436.7 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.14e-05/0.2804, allocations: 8.078 kB / 436.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.2804, allocations: 8 kB / 436.7 MB, free: 1.734 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.0001044/0.2805, allocations: 121.8 kB / 436.8 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.748e-05/0.2806, allocations: 57.64 kB / 436.8 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.768e-05/0.2807, allocations: 16.28 kB / 436.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.2807, allocations: 0 / 436.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2807, allocations: 0 / 436.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2807, allocations: 4 kB / 436.9 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001902/0.2809, allocations: 152.6 kB / 437 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2809, allocations: 0 / 437 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.437e-05/0.2809, allocations: 12 kB / 437 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2809, allocations: 0 / 437 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.2809, allocations: 3.984 kB / 437 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2809, allocations: 4 kB / 437 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.2809, allocations: 4 kB / 437 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002155/0.2811, allocations: 193.1 kB / 437.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.123e-05/0.2812, allocations: 19.94 kB / 437.2 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.2812, allocations: 4 kB / 437.2 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.81e-05/0.2813, allocations: 0 / 437.2 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.019e-05/0.2813, allocations: 288 / 437.2 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.2813, allocations: 11.92 kB / 437.3 MB, free: 1.055 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.517e-05/0.2814, allocations: 106 kB / 437.4 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2814, allocations: 4 kB / 437.4 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002368/0.2816, allocations: 11.94 kB / 437.4 MB, free: 0.9375 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.0005985/0.2822, allocations: 0.757 MB / 438.1 MB, free: 152 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001614/0.2824, allocations: 44.09 kB / 438.2 MB, free: 108 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.2824, allocations: 4 kB / 438.2 MB, free: 104 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.426e-05/0.2824, allocations: 11.98 kB / 438.2 MB, free: 92 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003588/0.2828, allocations: 39.56 kB / 438.2 MB, free: 56 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00153/0.2843, allocations: 1.451 MB / 439.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.2846, allocations: 0.7002 MB / 440.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.607e-05/0.2847, allocations: 3.781 kB / 440.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.238e-05/0.2847, allocations: 23.42 kB / 440.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2847, allocations: 0 / 440.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02185/0.3066, allocations: 1.947 MB / 442.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.19, allocations: 18.92 kB / 442.4 MB, free: 11.9 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 13.9312050579465]