Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001136/0.001136, allocations: 119 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001223/0.001223, allocations: 204.7 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 55.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.346, allocations: 50.53 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003809/0.3498, allocations: 1.886 MB / 410.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002218/0.3521, allocations: 1.274 MB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001859/0.3524, allocations: 7.938 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000372/0.3528, allocations: 67.66 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005/0.3533, allocations: 131.4 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007938/0.3541, allocations: 230.8 kB / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000271/0.3544, allocations: 175.5 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.3545, allocations: 33.53 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.3546, allocations: 71.7 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.3548, allocations: 75.69 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.511e-05/0.3548, allocations: 12 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001713/0.355, allocations: 75.88 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.658e-05/0.3551, allocations: 51.84 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.639e-05/0.3552, allocations: 83.41 kB / 412.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003674/0.3556, allocations: 245.9 kB / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3556, allocations: 0 / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3556, allocations: 4 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.3556, allocations: 3.938 kB / 413.1 MB, free: 13.12 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007759/0.3564, allocations: 0.5348 MB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.3564, allocations: 12.03 kB / 413.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.612e-05/0.3565, allocations: 42.73 kB / 413.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.504e-05/0.3566, allocations: 24.8 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004402/0.357, allocations: 295.7 kB / 414.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.357, allocations: 8.375 kB / 414.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.097e-05/0.3571, allocations: 11.94 kB / 414.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003465/0.3574, allocations: 155.6 kB / 414.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.3574, allocations: 0 / 414.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.3575, allocations: 0 / 414.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.3575, allocations: 4 kB / 414.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001228/0.3576, allocations: 39.91 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005264/0.3581, allocations: 390.3 kB / 414.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/0.3584, allocations: 119.8 kB / 414.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.677e-05/0.3585, allocations: 42.56 kB / 414.8 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.3585, allocations: 7.969 kB / 414.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001666/0.3587, allocations: 75.39 kB / 414.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.814e-06/0.3587, allocations: 4 kB / 414.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004093/0.3591, allocations: 157.4 kB / 415 MB, free: 10.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.375e-05/0.3592, allocations: 158.2 kB / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003459/0.3596, allocations: 338.6 kB / 415.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.301e-05/0.3596, allocations: 33.7 kB / 415.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.144e-05/0.3597, allocations: 128 kB / 415.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.258e-05/0.3598, allocations: 24.2 kB / 415.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.787e-05/0.3598, allocations: 33.72 kB / 415.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001966/0.36, allocations: 330.8 kB / 416.1 MB, free: 9.887 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.723e-05/0.3601, allocations: 23.98 kB / 416.1 MB, free: 9.863 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.3602, allocations: 86.8 kB / 416.2 MB, free: 9.754 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.3604, allocations: 88.2 kB / 416.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3604, allocations: 0 / 416.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002469/0.3607, allocations: 121.7 kB / 416.4 MB, free: 9.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.3607, allocations: 8.125 kB / 416.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.3607, allocations: 64 / 416.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.131e-05/0.3607, allocations: 8 kB / 416.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.3609, allocations: 23.92 kB / 416.4 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.3609, allocations: 4 kB / 416.4 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.752e-05/0.361, allocations: 11.88 kB / 416.4 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.361, allocations: 7.984 kB / 416.4 MB, free: 9.465 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: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001483/0.3612, allocations: 161.7 kB / 416.6 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.3613, allocations: 73.45 kB / 416.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.883e-05/0.3613, allocations: 29.7 kB / 416.7 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.3614, allocations: 3.938 kB / 416.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3614, allocations: 0 / 416.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.3614, allocations: 7.922 kB / 416.7 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002154/0.3616, allocations: 237.6 kB / 416.9 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3616, allocations: 0 / 416.9 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.237e-05/0.3617, allocations: 11.98 kB / 417 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.3617, allocations: 7.875 kB / 417 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.3617, allocations: 4 kB / 417 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3617, allocations: 4.062 kB / 417 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.3617, allocations: 4 kB / 417 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002822/0.362, allocations: 166.5 kB / 417.1 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.3621, allocations: 112.9 kB / 417.2 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.718e-05/0.3622, allocations: 4 kB / 417.3 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.284e-05/0.3623, allocations: 12 kB / 417.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.47e-05/0.3623, allocations: 11.92 kB / 417.3 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.116e-05/0.3624, allocations: 8 kB / 417.3 MB, free: 8.512 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002405/0.3626, allocations: 245.9 kB / 417.5 MB, free: 8.273 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3626, allocations: 0 / 417.5 MB, free: 8.273 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000276/0.3629, allocations: 35.94 kB / 417.6 MB, free: 8.238 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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001508/0.3644, allocations: 1.008 MB / 418.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002294/0.3647, allocations: 79.78 kB / 418.6 MB, free: 7.262 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3647, allocations: 4 kB / 418.6 MB, free: 7.258 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.36e-05/0.3648, allocations: 24.23 kB / 418.7 MB, free: 7.234 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004227/0.3652, allocations: 86.66 kB / 418.8 MB, free: 7.148 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002443/0.3676, allocations: 2.216 MB / 421 MB, free: 4.809 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003564/0.368, allocations: 0.7475 MB / 421.7 MB, free: 4.035 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.753e-05/0.3681, allocations: 29.52 kB / 421.8 MB, free: 4.008 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.3682, allocations: 55.42 kB / 421.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3683, allocations: 0 / 421.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02402/0.3923, allocations: 5.294 MB / 427.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.877/8.269, allocations: 10.41 kB / 427.1 MB, free: 14.78 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_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_IntegerSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches