Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008907/0.0008909, allocations: 168.9 kB / 16.8 MB, free: 4.992 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.409/1.409, allocations: 205.4 MB / 223 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006996/0.0006996, allocations: 104.3 kB / 271.3 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06668/0.06668, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003444/0.0003445, allocations: 12 kB / 393.3 MB, free: 65.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08425/0.08461, allocations: 50.38 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 0.001962/0.08662, allocations: 1.579 MB / 445.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.08793, allocations: 1.003 MB / 446.3 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.044e-05/0.08804, allocations: 3.938 kB / 446.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000287/0.08834, allocations: 67.8 kB / 446.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001734/0.08852, allocations: 79.72 kB / 446.4 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005156/0.08905, allocations: 207.6 kB / 446.6 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001581/0.08921, allocations: 151.6 kB / 446.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.08932, allocations: 41.47 kB / 446.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.543e-05/0.08941, allocations: 59.72 kB / 446.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.661e-05/0.0895, allocations: 71.67 kB / 446.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.878e-05/0.08952, allocations: 3.938 kB / 446.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001072/0.08964, allocations: 51.97 kB / 447 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.626e-05/0.08971, allocations: 43.84 kB / 447 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.764e-05/0.08979, allocations: 101.1 kB / 447.1 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001696/0.08996, allocations: 167.9 kB / 447.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.08998, allocations: 8 kB / 447.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.08998, allocations: 0 / 447.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.08999, allocations: 0 / 447.3 MB, free: 11.79 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005631/0.09056, allocations: 0.5001 MB / 447.8 MB, free: 11.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.0906, allocations: 8.031 kB / 447.8 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.869e-05/0.09066, allocations: 28.64 kB / 447.8 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002656/0.09093, allocations: 271.6 kB / 448.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.09096, allocations: 8.375 kB / 448.1 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.751e-05/0.09099, allocations: 8.125 kB / 448.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003071/0.0913, allocations: 159.5 kB / 448.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.09132, allocations: 0 / 448.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.09134, allocations: 0 / 448.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.09135, allocations: 4 kB / 448.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.998e-05/0.09146, allocations: 39.97 kB / 448.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004229/0.09189, allocations: 394.2 kB / 448.7 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001998/0.0921, allocations: 119.9 kB / 448.8 MB, free: 10.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.214e-05/0.09218, allocations: 42.56 kB / 448.9 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.273e-05/0.09221, allocations: 7.922 kB / 448.9 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001892/0.09241, allocations: 83.33 kB / 449 MB, free: 9.906 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.503e-06/0.09242, allocations: 0 / 449 MB, free: 9.906 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003392/0.09276, allocations: 145.4 kB / 449.1 MB, free: 9.758 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/0.09283, allocations: 166.2 kB / 449.3 MB, free: 9.559 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002552/0.09309, allocations: 326.6 kB / 449.6 MB, free: 9.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.09312, allocations: 33.95 kB / 449.6 MB, free: 9.191 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.994e-05/0.09319, allocations: 136 kB / 449.7 MB, free: 9.055 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.865e-05/0.09322, allocations: 11.81 kB / 449.8 MB, free: 9.043 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.562e-06/0.09323, allocations: 4 kB / 449.8 MB, free: 9.039 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.678e-05/0.09329, allocations: 334.8 kB / 450.1 MB, free: 8.703 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.084e-05/0.09336, allocations: 23.98 kB / 450.1 MB, free: 8.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.16e-05/0.09345, allocations: 86.86 kB / 450.2 MB, free: 8.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001209/0.09358, allocations: 80.47 kB / 450.3 MB, free: 8.477 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.09359, allocations: 0 / 450.3 MB, free: 8.477 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000185/0.09378, allocations: 129.3 kB / 450.4 MB, free: 8.344 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.0938, allocations: 8.938 kB / 450.4 MB, free: 8.336 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.09381, allocations: 0 / 450.4 MB, free: 8.336 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.09383, allocations: 8.031 kB / 450.4 MB, free: 8.328 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.09394, allocations: 15.98 kB / 450.4 MB, free: 8.312 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.09396, allocations: 7.938 kB / 450.4 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.584e-05/0.09404, allocations: 19.78 kB / 450.5 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.09405, allocations: 4 kB / 450.5 MB, free: 8.281 MB / 298.7 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.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.0001453/0.09421, allocations: 158.8 kB / 450.6 MB, free: 8.117 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.689e-05/0.09428, allocations: 65.36 kB / 450.7 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.98e-05/0.09434, allocations: 21.7 kB / 450.7 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.778e-06/0.09435, allocations: 4 kB / 450.7 MB, free: 8.023 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.09436, allocations: 0 / 450.7 MB, free: 8.023 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.09437, allocations: 3.938 kB / 450.7 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001524/0.09452, allocations: 237.6 kB / 450.9 MB, free: 7.738 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.09453, allocations: 0 / 450.9 MB, free: 7.738 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.312e-05/0.0946, allocations: 16 kB / 451 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.09461, allocations: 4.062 kB / 451 MB, free: 7.719 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.09463, allocations: 0 / 451 MB, free: 7.719 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.09464, allocations: 11.92 kB / 451 MB, free: 7.707 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.09465, allocations: 3.984 kB / 451 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002093/0.09486, allocations: 166.4 kB / 451.1 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.897e-05/0.09494, allocations: 116.9 kB / 451.3 MB, free: 7.383 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.075e-05/0.09498, allocations: 3.984 kB / 451.3 MB, free: 7.379 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.669e-05/0.09505, allocations: 8 kB / 451.3 MB, free: 7.371 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.641e-05/0.0951, allocations: 7.984 kB / 451.3 MB, free: 7.363 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.796e-05/0.09513, allocations: 12 kB / 451.3 MB, free: 7.352 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001718/0.0953, allocations: 241.9 kB / 451.5 MB, free: 7.113 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09531, allocations: 3.938 kB / 451.5 MB, free: 7.109 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002333/0.09555, allocations: 39.89 kB / 451.6 MB, free: 7.07 MB / 298.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,subSample.y,sample.y,subSample.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.00084/0.09639, allocations: 422.6 kB / 452 MB, free: 6.648 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001968/0.0966, allocations: 75.91 kB / 452.1 MB, free: 6.574 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.09661, allocations: 0 / 452.1 MB, free: 6.574 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.065e-05/0.09669, allocations: 31.92 kB / 452.1 MB, free: 6.543 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004169/0.09711, allocations: 56.73 kB / 452.1 MB, free: 6.488 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005565/0.09769, allocations: 450.4 kB / 452.6 MB, free: 6.016 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001615/0.09786, allocations: 0.74 MB / 453.3 MB, free: 5.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.896e-05/0.09792, allocations: 19.44 kB / 453.3 MB, free: 5.234 MB / 298.7 MB Notification: Performance of SimCode: time 2.71e-07/0.09792, allocations: 0 / 453.3 MB, free: 5.234 MB / 298.7 MB Notification: Performance of Templates: time 0.004029/0.102, allocations: 2.854 MB / 456.2 MB, free: 2.375 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches