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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001946/0.001946, allocations: 115.1 kB / 17.07 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002284/0.002284, allocations: 198.9 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.178/2.178, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001698/0.001698, allocations: 43.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5388/0.5405, allocations: 49.45 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.006318/0.5469, allocations: 1.587 MB / 401.8 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001577/0.5485, allocations: 489.9 kB / 402.3 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.5487, allocations: 3.938 kB / 402.3 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.591e-05/0.5488, allocations: 7.922 kB / 402.3 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002271/0.5491, allocations: 11.92 kB / 402.3 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005316/0.5497, allocations: 55.83 kB / 402.4 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001685/0.5498, allocations: 51.78 kB / 402.4 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.55, allocations: 12.19 kB / 402.5 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.5501, allocations: 27.91 kB / 402.5 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001145/0.5503, allocations: 23.86 kB / 402.5 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.732e-05/0.5503, allocations: 4 kB / 402.5 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.012e-05/0.5503, allocations: 7.938 kB / 402.5 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.687e-05/0.5504, allocations: 19.86 kB / 402.5 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.5505, allocations: 31.8 kB / 402.6 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002116/0.5508, allocations: 59.73 kB / 402.6 MB, free: 6.414 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.5508, allocations: 0 / 402.6 MB, free: 6.414 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.5508, allocations: 0 / 402.6 MB, free: 6.414 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.537e-05/0.5508, allocations: 0 / 402.6 MB, free: 6.414 MB / 318.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.0008615/0.5517, allocations: 376.9 kB / 403 MB, free: 6 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.266e-05/0.5518, allocations: 12.03 kB / 403 MB, free: 5.988 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.912e-05/0.5518, allocations: 34.75 kB / 403 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.974e-05/0.5519, allocations: 12.84 kB / 403.1 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000501/0.5524, allocations: 208 kB / 403.3 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.5524, allocations: 8.312 kB / 403.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.289e-05/0.5525, allocations: 4.375 kB / 403.3 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004939/0.553, allocations: 133.8 kB / 403.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.553, allocations: 0 / 403.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.478e-05/0.553, allocations: 4 kB / 403.4 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.5531, allocations: 4 kB / 403.4 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001295/0.5532, allocations: 23.92 kB / 403.4 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006148/0.5538, allocations: 282.5 kB / 403.7 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003856/0.5542, allocations: 152.8 kB / 403.9 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001384/0.5544, allocations: 50.67 kB / 403.9 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.644e-05/0.5545, allocations: 4 kB / 403.9 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.54e-05/0.5545, allocations: 38.5 kB / 403.9 MB, free: 4.859 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.843e-06/0.5545, allocations: 0 / 403.9 MB, free: 4.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004806/0.555, allocations: 93.5 kB / 404 MB, free: 4.762 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001386/0.5552, allocations: 106.8 kB / 404.1 MB, free: 4.633 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002273/0.5554, allocations: 153.1 kB / 404.3 MB, free: 4.473 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.5555, allocations: 25.7 kB / 404.3 MB, free: 4.441 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.5556, allocations: 84.14 kB / 404.4 MB, free: 4.355 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.122e-05/0.5557, allocations: 15.84 kB / 404.4 MB, free: 4.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.978e-05/0.5558, allocations: 21.7 kB / 404.4 MB, free: 4.312 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002175/0.556, allocations: 322.8 kB / 404.7 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.135e-05/0.5561, allocations: 15.92 kB / 404.8 MB, free: 3.973 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.5562, allocations: 52.27 kB / 404.8 MB, free: 3.906 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001761/0.5564, allocations: 60.22 kB / 404.9 MB, free: 3.832 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.5564, allocations: 0 / 404.9 MB, free: 3.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000265/0.5567, allocations: 89.45 kB / 405 MB, free: 3.738 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/0.5567, allocations: 11.98 kB / 405 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.5567, allocations: 0 / 405 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.117e-05/0.5568, allocations: 4 kB / 405 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.5569, allocations: 15.88 kB / 405 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.5569, allocations: 0 / 405 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.664e-05/0.5571, allocations: 11.98 kB / 405 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.5571, allocations: 128 / 405 MB, free: 3.695 MB / 318.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.0001908/0.5573, allocations: 125.8 kB / 405.1 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001462/0.5574, allocations: 57.53 kB / 405.2 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.929e-05/0.5575, allocations: 12.25 kB / 405.2 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.5575, allocations: 0 / 405.2 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.5575, allocations: 0 / 405.2 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.5576, allocations: 3.984 kB / 405.2 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003431/0.5579, allocations: 177.6 kB / 405.4 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.5579, allocations: 4 kB / 405.4 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.855e-05/0.558, allocations: 7.984 kB / 405.4 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.558, allocations: 8 kB / 405.4 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.5581, allocations: 0 / 405.4 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.099e-06/0.5581, allocations: 4 kB / 405.4 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.5581, allocations: 4 kB / 405.4 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003853/0.5585, allocations: 185 kB / 405.6 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.5586, allocations: 97.28 kB / 405.7 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.66e-05/0.5587, allocations: 4 kB / 405.7 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.5588, allocations: 7.984 kB / 405.7 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.903e-05/0.5589, allocations: 7.984 kB / 405.7 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.664e-06/0.5589, allocations: 0 / 405.7 MB, free: 2.891 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001464/0.5591, allocations: 111.2 kB / 405.8 MB, free: 2.781 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.5591, allocations: 0 / 405.8 MB, free: 2.781 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000464/0.5596, allocations: 11.94 kB / 405.8 MB, free: 2.77 MB / 318.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.001228/0.5608, allocations: 0.7496 MB / 406.6 MB, free: 1.988 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003113/0.5611, allocations: 44.16 kB / 406.6 MB, free: 1.945 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.5612, allocations: 4.062 kB / 406.6 MB, free: 1.941 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.515e-05/0.5612, allocations: 11.94 kB / 406.6 MB, free: 1.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006792/0.5619, allocations: 35.95 kB / 406.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002922/0.5649, allocations: 1.447 MB / 408.1 MB, free: 340 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006055/0.5655, allocations: 0.7 MB / 408.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.85e-05/0.5656, allocations: 7.938 kB / 408.8 MB, free: 15.6 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.894e-05/0.5657, allocations: 23.42 kB / 408.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of SimCode: time 1.363e-06/0.5657, allocations: 0 / 408.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03412/0.5998, allocations: 1.803 MB / 410.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.38, allocations: 9.375 kB / 410.6 MB, free: 13.91 MB / 334.1 MB (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 --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) 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) Reference file matches