Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.0009295/0.0009295, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008834/0.0008834, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9475/0.9475, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 3.938 kB / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.547e-05/1.685e-05, allocations: 8.891 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.001927/0.001944, allocations: 1.52 MB / 326.1 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003146/0.002258, allocations: 147.4 kB / 326.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.973e-05/0.002338, allocations: 3.938 kB / 326.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.47e-05/0.002383, allocations: 7.922 kB / 326.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001259/0.002509, allocations: 7.938 kB / 326.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001944/0.002703, allocations: 31.28 kB / 326.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.644e-05/0.002789, allocations: 31.86 kB / 326.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.466e-05/0.002884, allocations: 15.92 kB / 326.3 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.368e-05/0.002928, allocations: 23.91 kB / 326.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.863e-05/0.002966, allocations: 0 / 326.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.44e-05/0.002991, allocations: 4 kB / 326.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.785e-06/0.002999, allocations: 4 kB / 326.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.478e-05/0.003043, allocations: 11.94 kB / 326.4 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.031e-05/0.003064, allocations: 11.92 kB / 326.4 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.382e-05/0.003157, allocations: 35.89 kB / 326.4 MB, free: 14.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.003161, allocations: 3.984 kB / 326.4 MB, free: 14.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.003162, allocations: 0 / 326.4 MB, free: 14.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.087e-06/0.003166, allocations: 0 / 326.4 MB, free: 14.1 MB / 298.7 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.0003459/0.003512, allocations: 289.3 kB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.00355, allocations: 12.02 kB / 326.7 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.771e-05/0.003578, allocations: 30.75 kB / 326.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.084e-05/0.003599, allocations: 12.89 kB / 326.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.00377, allocations: 129.7 kB / 326.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.947e-06/0.003779, allocations: 4.312 kB / 326.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.103e-05/0.00379, allocations: 8.375 kB / 326.9 MB, free: 13.56 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000195/0.003985, allocations: 81.67 kB / 327 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.003992, allocations: 192 / 327 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.004, allocations: 384 / 327 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.004006, allocations: 8.125 kB / 327 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.852e-05/0.004045, allocations: 23.92 kB / 327 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002651/0.00431, allocations: 224.9 kB / 327.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.486e-05/0.004365, allocations: 41.16 kB / 327.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.865e-05/0.004393, allocations: 21.77 kB / 327.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.004411, allocations: 0 / 327.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.994e-05/0.004431, allocations: 42.44 kB / 327.3 MB, free: 13.03 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 9.11e-07/0.004432, allocations: 0 / 327.3 MB, free: 13.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001648/0.004597, allocations: 69.64 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.00464, allocations: 77.11 kB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.517e-05/0.004735, allocations: 143.5 kB / 327.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.858e-06/0.004745, allocations: 25.7 kB / 327.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.331e-05/0.004788, allocations: 92.11 kB / 327.7 MB, free: 12.58 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.775e-06/0.004796, allocations: 0 / 327.7 MB, free: 12.58 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.318e-05/0.004819, allocations: 17.72 kB / 327.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.68e-05/0.004906, allocations: 310.8 kB / 328 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.796e-05/0.004924, allocations: 4 kB / 328 MB, free: 12.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.376e-05/0.004938, allocations: 12.14 kB / 328.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.581e-05/0.004973, allocations: 24.84 kB / 328.1 MB, free: 12.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.004975, allocations: 0 / 328.1 MB, free: 12.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.821e-05/0.005033, allocations: 49.58 kB / 328.1 MB, free: 12.15 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.005047, allocations: 4 kB / 328.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.005053, allocations: 0 / 328.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.005065, allocations: 0 / 328.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.842e-05/0.005114, allocations: 7.938 kB / 328.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.005118, allocations: 4.094 kB / 328.1 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.378e-05/0.005132, allocations: 3.984 kB / 328.1 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-06/0.00514, allocations: 4 kB / 328.2 MB, free: 12.12 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 6.849e-05/0.005209, allocations: 113.8 kB / 328.3 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.317e-05/0.005242, allocations: 37.59 kB / 328.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.933e-05/0.005271, allocations: 23.73 kB / 328.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.005273, allocations: 0 / 328.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.005279, allocations: 4 kB / 328.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.005283, allocations: 4 kB / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.005393, allocations: 136.8 kB / 328.5 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.005393, allocations: 0 / 328.5 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.954e-05/0.005413, allocations: 7.984 kB / 328.5 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.005416, allocations: 3.938 kB / 328.5 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.562e-06/0.005423, allocations: 4 kB / 328.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.005424, allocations: 0 / 328.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.005426, allocations: 3.938 kB / 328.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.414e-05/0.00552, allocations: 148.4 kB / 328.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.411e-05/0.005544, allocations: 19.81 kB / 328.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.508e-06/0.005553, allocations: 0 / 328.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.255e-05/0.005586, allocations: 12.03 kB / 328.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.698e-05/0.005613, allocations: 0 / 328.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.005615, allocations: 0 / 328.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.53e-05/0.005661, allocations: 106.1 kB / 328.8 MB, free: 11.44 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005661, allocations: 3.938 kB / 328.8 MB, free: 11.44 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001421/0.005803, allocations: 8 kB / 328.8 MB, free: 11.43 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample1.y) * 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.000249/0.006052, allocations: 0.6897 MB / 329.5 MB, free: 10.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.314e-05/0.006135, allocations: 20.02 kB / 329.5 MB, free: 10.69 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.006137, allocations: 0 / 329.5 MB, free: 10.69 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.865e-05/0.006156, allocations: 11.94 kB / 329.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002399/0.006395, allocations: 16.02 kB / 329.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009029/0.007298, allocations: 1.24 MB / 330.8 MB, free: 9.336 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.946e-05/0.007358, allocations: 75.84 kB / 330.8 MB, free: 9.242 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.541e-05/0.007373, allocations: 0 / 330.8 MB, free: 9.242 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.769e-05/0.007411, allocations: 16.48 kB / 330.8 MB, free: 9.227 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.007411, allocations: 4 kB / 330.8 MB, free: 9.223 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01397/0.02138, allocations: 2.038 MB / 332.9 MB, free: 7.297 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.64/6.661, allocations: 3.156 kB / 332.9 MB, free: 7.297 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,step.height,step.offset,step.startTime,step.y,time [Calling sys.exit(0), Time elapsed: 8.420211541466415]