Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 111.8 kB / 17.29 MB, free: 6.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000965/0.0009651, allocations: 51.45 kB / 300.8 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09145/0.09243, allocations: 49.45 MB / 350.2 MB, free: 4.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003724/0.0962, allocations: 1.925 MB / 352.2 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.098, allocations: 1.091 MB / 353.3 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001554/0.09818, allocations: 7.938 kB / 353.3 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003522/0.09857, allocations: 67.77 kB / 353.3 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002928/0.09888, allocations: 79.73 kB / 353.4 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007695/0.09966, allocations: 225.7 kB / 353.6 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002702/0.09994, allocations: 175.5 kB / 353.8 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.1001, allocations: 33.53 kB / 353.8 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.1002, allocations: 83.62 kB / 353.9 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001239/0.1004, allocations: 71.69 kB / 354 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.793e-05/0.1004, allocations: 8 kB / 354 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001532/0.1006, allocations: 63.97 kB / 354.1 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.1007, allocations: 63.75 kB / 354.1 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.886e-05/0.1008, allocations: 75.48 kB / 354.2 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002921/0.1011, allocations: 176 kB / 354.4 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1011, allocations: 0 / 354.4 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.1011, allocations: 0 / 354.4 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.1011, allocations: 3.938 kB / 354.4 MB, free: 0.5195 MB / 286.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.0007788/0.1019, allocations: 0.5234 MB / 354.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.1019, allocations: 11.89 kB / 354.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.668e-05/0.102, allocations: 24.66 kB / 354.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.1023, allocations: 287.6 kB / 355.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.1024, allocations: 4.375 kB / 355.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.1024, allocations: 20 kB / 355.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003142/0.1027, allocations: 151.6 kB / 355.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.1027, allocations: 4 kB / 355.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.1028, allocations: 8 kB / 355.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.1028, allocations: 0 / 355.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001155/0.1029, allocations: 35.92 kB / 355.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000527/0.1034, allocations: 386.3 kB / 355.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002386/0.1037, allocations: 119.9 kB / 355.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.434e-05/0.1038, allocations: 42.56 kB / 356 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.1038, allocations: 8 kB / 356 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002256/0.1041, allocations: 75.38 kB / 356 MB, free: 14.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.843e-06/0.1041, allocations: 0 / 356 MB, free: 14.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003913/0.1045, allocations: 161.2 kB / 356.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.481e-05/0.1046, allocations: 162.2 kB / 356.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003298/0.1049, allocations: 326.9 kB / 356.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/0.1049, allocations: 29.7 kB / 356.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.696e-05/0.105, allocations: 124.1 kB / 356.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.5e-05/0.1051, allocations: 15.81 kB / 356.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.325e-05/0.1051, allocations: 33.7 kB / 356.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.1053, allocations: 334.8 kB / 357.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.08e-05/0.1054, allocations: 23.98 kB / 357.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.1055, allocations: 90.8 kB / 357.3 MB, free: 13.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001481/0.1056, allocations: 80.22 kB / 357.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1056, allocations: 4 kB / 357.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002396/0.1059, allocations: 121.3 kB / 357.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.1059, allocations: 11.94 kB / 357.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.1059, allocations: 0 / 357.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.106, allocations: 11.97 kB / 357.5 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.1061, allocations: 15.98 kB / 357.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.1061, allocations: 4 kB / 357.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.874e-05/0.1062, allocations: 11.94 kB / 357.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.1062, allocations: 8.125 kB / 357.6 MB, free: 12.96 MB / 302.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.0001282/0.1063, allocations: 157.7 kB / 357.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.043e-05/0.1064, allocations: 65.42 kB / 357.8 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.958e-05/0.1065, allocations: 21.7 kB / 357.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.1065, allocations: 4 kB / 357.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1065, allocations: 0 / 357.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.1065, allocations: 3.938 kB / 357.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002002/0.1067, allocations: 241.6 kB / 358.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.1067, allocations: 4.375 kB / 358.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.481e-05/0.1068, allocations: 15.94 kB / 358.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.738e-06/0.1068, allocations: 4 kB / 358.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.1068, allocations: 7.938 kB / 358.1 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.1068, allocations: 7.984 kB / 358.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.1069, allocations: 0 / 358.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002626/0.1071, allocations: 166.4 kB / 358.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.531e-05/0.1072, allocations: 112.8 kB / 358.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.637e-05/0.1073, allocations: 4 kB / 358.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.212e-05/0.1073, allocations: 7.984 kB / 358.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.456e-05/0.1074, allocations: 8 kB / 358.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.136e-05/0.1074, allocations: 11.92 kB / 358.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002202/0.1077, allocations: 241.9 kB / 358.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1077, allocations: 0 / 358.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002925/0.108, allocations: 28 kB / 358.7 MB, free: 11.76 MB / 302.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.0009971/0.109, allocations: 426.3 kB / 359.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002536/0.1092, allocations: 79.84 kB / 359.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.1093, allocations: 4 kB / 359.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.006e-05/0.1093, allocations: 27.98 kB / 359.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004171/0.1098, allocations: 72.14 kB / 359.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006728/0.1105, allocations: 442.9 kB / 359.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.1108, allocations: 0.7397 MB / 360.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.668e-05/0.1108, allocations: 23.44 kB / 360.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1108, allocations: 0 / 360.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of Templates: time 0.005849/0.1167, allocations: 2.878 MB / 363.3 MB, free: 7.191 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches