Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001275/0.001275, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001352/0.001352, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 59.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3444, allocations: 50.53 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.003794/0.3482, allocations: 1.576 MB / 410.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.3495, allocations: 0.5181 MB / 410.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.3496, allocations: 0 / 410.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.005e-05/0.3497, allocations: 3.938 kB / 410.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.3499, allocations: 15.88 kB / 410.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003689/0.3502, allocations: 55.81 kB / 410.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001137/0.3504, allocations: 35.86 kB / 411 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.3505, allocations: 15.94 kB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001306/0.3506, allocations: 27.91 kB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.3e-05/0.3507, allocations: 19.86 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.956e-05/0.3507, allocations: 4 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.533e-05/0.3508, allocations: 4 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.932e-05/0.3508, allocations: 11.98 kB / 411 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.846e-05/0.3509, allocations: 27.81 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001604/0.351, allocations: 50.77 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.351, allocations: 3.984 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3511, allocations: 3.938 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.3511, allocations: 0 / 411.1 MB, free: 15.15 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000504/0.3516, allocations: 371.1 kB / 411.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.3516, allocations: 12.03 kB / 411.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.977e-05/0.3517, allocations: 30.75 kB / 411.5 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000187/0.3519, allocations: 16.88 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002891/0.3522, allocations: 204.2 kB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.3522, allocations: 384 / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/0.3522, allocations: 4.375 kB / 411.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002699/0.3525, allocations: 93.17 kB / 411.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.3525, allocations: 4 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.3525, allocations: 4 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.3525, allocations: 0 / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.126e-05/0.3526, allocations: 19.92 kB / 411.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004642/0.3531, allocations: 269.6 kB / 412.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001176/0.3532, allocations: 45.2 kB / 412.2 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.737e-05/0.3533, allocations: 25.72 kB / 412.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.96e-05/0.3534, allocations: 4 kB / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.3534, allocations: 30.56 kB / 412.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.3534, allocations: 0 / 412.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003178/0.3537, allocations: 73.66 kB / 412.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.616e-05/0.3538, allocations: 81.11 kB / 412.4 MB, free: 13.67 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001617/0.354, allocations: 140.5 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.354, allocations: 25.7 kB / 412.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.896e-05/0.3541, allocations: 88.14 kB / 412.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.953e-05/0.3541, allocations: 3.938 kB / 412.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.787e-05/0.3542, allocations: 21.67 kB / 412.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.3543, allocations: 322.9 kB / 413 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.806e-05/0.3544, allocations: 12 kB / 413 MB, free: 13.03 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.037e-05/0.3544, allocations: 21.7 kB / 413 MB, free: 13 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.735e-05/0.3546, allocations: 29.64 kB / 413 MB, free: 12.97 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.3546, allocations: 4 kB / 413 MB, free: 12.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001398/0.3547, allocations: 57.69 kB / 413.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.3547, allocations: 6.812 kB / 413.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.3548, allocations: 0 / 413.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.3548, allocations: 0 / 413.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.017e-05/0.3549, allocations: 7.984 kB / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.3549, allocations: 4 kB / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.753e-05/0.3549, allocations: 0 / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.3549, allocations: 7.984 kB / 413.1 MB, free: 12.88 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001017/0.3551, allocations: 125.8 kB / 413.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.969e-05/0.3551, allocations: 33.66 kB / 413.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.883e-05/0.3552, allocations: 15.83 kB / 413.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3552, allocations: 0 / 413.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.3552, allocations: 7.984 kB / 413.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.3552, allocations: 3.984 kB / 413.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001995/0.3554, allocations: 169.5 kB / 413.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.3554, allocations: 3.984 kB / 413.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.733e-05/0.3555, allocations: 7.938 kB / 413.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.3555, allocations: 8.031 kB / 413.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.3555, allocations: 0 / 413.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.3555, allocations: 0 / 413.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3555, allocations: 0 / 413.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000198/0.3557, allocations: 160.3 kB / 413.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.484e-05/0.3558, allocations: 93.05 kB / 413.7 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.3558, allocations: 7.969 kB / 413.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.106e-05/0.3559, allocations: 4 kB / 413.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.586e-05/0.356, allocations: 0 / 413.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.356, allocations: 0 / 413.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.686e-05/0.3561, allocations: 113.5 kB / 413.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.773e-06/0.3561, allocations: 3.938 kB / 413.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002306/0.3563, allocations: 7.938 kB / 413.9 MB, free: 12.02 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0005335/0.3568, allocations: 0.6937 MB / 414.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001891/0.357, allocations: 23.92 kB / 414.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3571, allocations: 0 / 414.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.466e-05/0.3571, allocations: 16.14 kB / 414.6 MB, free: 11.26 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/0.3575, allocations: 15.53 kB / 414.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.3589, allocations: 1.312 MB / 415.9 MB, free: 9.844 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.3592, allocations: 0.6924 MB / 416.6 MB, free: 9.125 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.113e-05/0.3592, allocations: 4.125 kB / 416.6 MB, free: 9.121 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.981e-05/0.3593, allocations: 15.44 kB / 416.6 MB, free: 9.105 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3593, allocations: 0 / 416.6 MB, free: 9.105 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02176/0.3811, allocations: 1.485 MB / 418.1 MB, free: 7.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.202/8.583, allocations: 12.81 kB / 418.1 MB, free: 7.719 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches