Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.001856/0.001856, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.001903/0.001903, allocations: 165.3 kB / 24.27 MB, free: 152 kB / 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 1.576/1.576, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.112e-05/3.26e-05, allocations: 2.312 kB / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004183/0.004215, allocations: 1.902 MB / 274.2 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002847/0.007062, allocations: 1.223 MB / 275.4 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.00718, allocations: 7.938 kB / 275.4 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003272/0.007508, allocations: 75.53 kB / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004021/0.00791, allocations: 131.4 kB / 275.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006478/0.008558, allocations: 231.1 kB / 275.9 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003155/0.008873, allocations: 183.4 kB / 276.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.008982, allocations: 17.8 kB / 276.1 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001792/0.009161, allocations: 103.7 kB / 276.2 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.009306, allocations: 67.86 kB / 276.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.632e-05/0.009343, allocations: 8 kB / 276.2 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001877/0.00953, allocations: 83.8 kB / 276.3 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.009632, allocations: 51.78 kB / 276.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.536e-05/0.009717, allocations: 43.84 kB / 276.4 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005153/0.01023, allocations: 243.1 kB / 276.7 MB, free: 13.47 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.01024, allocations: 0 / 276.7 MB, free: 13.47 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.01024, allocations: 0 / 276.7 MB, free: 13.47 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.01024, allocations: 0 / 276.7 MB, free: 13.47 MB / 266.7 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.0009251/0.01117, allocations: 0.5825 MB / 277.2 MB, free: 12.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.01121, allocations: 8.031 kB / 277.2 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.606e-05/0.01129, allocations: 32.78 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004163/0.01171, allocations: 239.6 kB / 277.5 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.01173, allocations: 384 / 277.5 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.307e-05/0.01176, allocations: 12.38 kB / 277.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004317/0.01219, allocations: 190 kB / 277.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.0122, allocations: 3.938 kB / 277.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.01221, allocations: 0 / 277.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.01222, allocations: 8 kB / 277.7 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000126/0.01234, allocations: 35.91 kB / 277.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006511/0.01299, allocations: 395 kB / 278.1 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002824/0.01328, allocations: 133.3 kB / 278.3 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.01339, allocations: 58.92 kB / 278.3 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.55e-05/0.01341, allocations: 4 kB / 278.3 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000195/0.01361, allocations: 77.05 kB / 278.4 MB, free: 11.5 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 1.803e-06/0.01361, allocations: 0 / 278.4 MB, free: 11.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005204/0.01413, allocations: 153.4 kB / 278.6 MB, free: 11.35 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/0.01425, allocations: 136.5 kB / 278.7 MB, free: 11.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004567/0.01471, allocations: 372.3 kB / 279.1 MB, free: 10.8 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.01474, allocations: 29.7 kB / 279.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001762/0.01491, allocations: 194.8 kB / 279.3 MB, free: 10.57 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.148e-05/0.01494, allocations: 15.91 kB / 279.3 MB, free: 10.56 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/0.01502, allocations: 39.36 kB / 279.3 MB, free: 10.51 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003204/0.01534, allocations: 0.5157 MB / 279.8 MB, free: 9.984 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.258e-05/0.0154, allocations: 16 kB / 279.9 MB, free: 9.969 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001347/0.01554, allocations: 106.4 kB / 280 MB, free: 9.836 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001598/0.0157, allocations: 71.27 kB / 280 MB, free: 9.758 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.0157, allocations: 0 / 280 MB, free: 9.758 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000213/0.01591, allocations: 97.48 kB / 280.1 MB, free: 9.656 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.01593, allocations: 4 kB / 280.1 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.01594, allocations: 3.984 kB / 280.1 MB, free: 9.648 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.01595, allocations: 4 kB / 280.1 MB, free: 9.645 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.965e-05/0.01605, allocations: 8 kB / 280.1 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.01606, allocations: 0 / 280.1 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.517e-05/0.01612, allocations: 8 kB / 280.2 MB, free: 9.629 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.01614, allocations: 12.02 kB / 280.2 MB, free: 9.617 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001636/0.0163, allocations: 172.5 kB / 280.3 MB, free: 9.438 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.01641, allocations: 65.5 kB / 280.4 MB, free: 9.367 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002985/0.01671, allocations: 115.4 kB / 280.5 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.01672, allocations: 4 kB / 280.5 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.01672, allocations: 320 / 280.5 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.01673, allocations: 0 / 280.5 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002886/0.01701, allocations: 228.5 kB / 280.7 MB, free: 8.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.01702, allocations: 4 kB / 280.7 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.752e-05/0.0171, allocations: 23.98 kB / 280.8 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.0171, allocations: 0 / 280.8 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.01711, allocations: 4 kB / 280.8 MB, free: 8.949 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.01712, allocations: 0 / 280.8 MB, free: 8.949 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.01712, allocations: 0 / 280.8 MB, free: 8.949 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000567/0.01768, allocations: 191.5 kB / 281 MB, free: 8.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.631e-05/0.01778, allocations: 31.84 kB / 281 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.315e-05/0.01781, allocations: 3.984 kB / 281 MB, free: 8.695 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.724e-05/0.01788, allocations: 8 kB / 281 MB, free: 8.688 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.062e-05/0.01794, allocations: 11.97 kB / 281 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.01796, allocations: 8 kB / 281 MB, free: 8.668 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002739/0.01823, allocations: 249.1 kB / 281.3 MB, free: 8.426 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01823, allocations: 4 kB / 281.3 MB, free: 8.422 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002672/0.0185, allocations: 31.94 kB / 281.3 MB, free: 8.391 MB / 266.7 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.00299/0.02149, allocations: 464 kB / 281.8 MB, free: 8.121 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002417/0.02173, allocations: 63.59 kB / 281.8 MB, free: 8.055 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.02173, allocations: 0 / 281.8 MB, free: 8.055 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.02184, allocations: 43.61 kB / 281.9 MB, free: 8.008 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004458/0.02228, allocations: 65.81 kB / 281.9 MB, free: 7.938 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006953/0.02298, allocations: 353.1 kB / 282.3 MB, free: 7.559 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001553/0.02313, allocations: 127.9 kB / 282.4 MB, free: 7.414 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.43e-05/0.02322, allocations: 33.8 kB / 282.4 MB, free: 7.383 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.249e-05/0.02328, allocations: 20.5 kB / 282.4 MB, free: 7.363 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.02328, allocations: 0 / 282.4 MB, free: 7.363 MB / 266.7 MB Notification: Performance of Templates: time 0.008064/0.03135, allocations: 2.979 MB / 285.4 MB, free: 4.422 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.517668736982159]