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.001631/0.001631, allocations: 108.2 kB / 21.19 MB, free: 0.7617 MB / 14.72 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.002022/0.002022, allocations: 213.9 kB / 24.49 MB, free: 4.145 MB / 14.72 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.399/1.399, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 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 0.001515/0.001515, allocations: 47.92 kB / 379 MB, free: 2.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/0.2274, allocations: 53.36 MB / 432.4 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.00357/0.231, allocations: 1.924 MB / 434.3 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00233/0.2333, allocations: 1.297 MB / 435.6 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.2335, allocations: 7.938 kB / 435.6 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003283/0.2338, allocations: 67.61 kB / 435.7 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000366/0.2342, allocations: 139.4 kB / 435.8 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006593/0.2348, allocations: 230.2 kB / 436 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002822/0.2351, allocations: 187.5 kB / 436.2 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.2352, allocations: 17.73 kB / 436.2 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.2353, allocations: 79.69 kB / 436.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001366/0.2355, allocations: 87.55 kB / 436.4 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.276e-05/0.2355, allocations: 12 kB / 436.4 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001721/0.2357, allocations: 75.95 kB / 436.5 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.451e-05/0.2358, allocations: 47.83 kB / 436.5 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.2359, allocations: 79.42 kB / 436.6 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003676/0.2362, allocations: 245.2 kB / 436.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.2362, allocations: 4 kB / 436.9 MB, free: 2.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2362, allocations: 0 / 436.9 MB, free: 2.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.2362, allocations: 0 / 436.9 MB, free: 2.473 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.0007763/0.237, allocations: 478.5 kB / 437.3 MB, free: 1.969 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.2371, allocations: 12.03 kB / 437.3 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.041e-05/0.2371, allocations: 24.8 kB / 437.4 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004271/0.2375, allocations: 233.4 kB / 437.6 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.2376, allocations: 4.375 kB / 437.6 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.528e-05/0.2376, allocations: 12.12 kB / 437.6 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003478/0.2379, allocations: 159.5 kB / 437.8 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.2379, allocations: 0 / 437.8 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.2379, allocations: 0 / 437.8 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.238, allocations: 4 kB / 437.8 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001264/0.2381, allocations: 39.91 kB / 437.8 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005503/0.2386, allocations: 357.5 kB / 438.1 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002565/0.2389, allocations: 111.8 kB / 438.3 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.669e-05/0.239, allocations: 50.56 kB / 438.3 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.239, allocations: 0 / 438.3 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001685/0.2392, allocations: 79.38 kB / 438.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.392e-06/0.2392, allocations: 0 / 438.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004118/0.2396, allocations: 161.4 kB / 438.5 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.2397, allocations: 154.2 kB / 438.7 MB, free: 416 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003736/0.2401, allocations: 337.8 kB / 439 MB, free: 72 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.2401, allocations: 29.7 kB / 439.1 MB, free: 36 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.2402, allocations: 132.1 kB / 439.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.749e-05/0.2402, allocations: 15.91 kB / 439.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.851e-05/0.2403, allocations: 33.95 kB / 439.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.2405, allocations: 338.8 kB / 439.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.552e-05/0.2405, allocations: 23.98 kB / 439.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.2407, allocations: 87.05 kB / 439.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.2408, allocations: 100.1 kB / 439.8 MB, free: 15.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.2408, allocations: 0 / 439.8 MB, free: 15.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000243/0.2411, allocations: 125.5 kB / 439.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.2411, allocations: 4 kB / 439.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.2411, allocations: 0 / 439.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.2411, allocations: 8.125 kB / 439.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.2412, allocations: 19.92 kB / 439.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.2412, allocations: 4 kB / 439.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.919e-05/0.2413, allocations: 11.94 kB / 439.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/0.2413, allocations: 4 kB / 439.9 MB, free: 15.08 MB / 350.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.0001565/0.2415, allocations: 150.5 kB / 440.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.781e-05/0.2416, allocations: 77.44 kB / 440.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002842/0.2419, allocations: 123.4 kB / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.2419, allocations: 4 kB / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.2419, allocations: 0 / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.2419, allocations: 3.938 kB / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002313/0.2421, allocations: 208.7 kB / 440.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.2421, allocations: 4 kB / 440.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.616e-05/0.2422, allocations: 11.98 kB / 440.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2422, allocations: 0 / 440.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.2422, allocations: 8.125 kB / 440.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.2422, allocations: 4 kB / 440.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.2422, allocations: 8.031 kB / 440.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002887/0.2425, allocations: 170.5 kB / 440.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.545e-05/0.2426, allocations: 35.83 kB / 440.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.681e-05/0.2426, allocations: 8 kB / 440.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.61e-05/0.2427, allocations: 4 kB / 440.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.934e-05/0.2427, allocations: 11.98 kB / 440.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.635e-05/0.2428, allocations: 7.938 kB / 440.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002666/0.243, allocations: 249.2 kB / 441 MB, free: 13.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.243, allocations: 0 / 441 MB, free: 13.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002765/0.2433, allocations: 35.94 kB / 441 MB, free: 13.89 MB / 350.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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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.001545/0.2448, allocations: 430.8 kB / 441.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002559/0.2451, allocations: 67.91 kB / 441.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2451, allocations: 4 kB / 441.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.622e-05/0.2452, allocations: 27.92 kB / 441.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004306/0.2456, allocations: 70.41 kB / 441.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006966/0.2463, allocations: 406.6 kB / 442 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.2467, allocations: 0.7442 MB / 442.8 MB, free: 12.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.985e-05/0.2468, allocations: 23.42 kB / 442.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2468, allocations: 0 / 442.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of Templates: time 0.005561/0.2523, allocations: 2.958 MB / 445.7 MB, free: 9.277 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/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: 7.124264443060383]