Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.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.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001298/0.001298, allocations: 177.5 kB / 16.77 MB, free: 4.926 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.516/1.516, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.000746/0.0007461, allocations: 97.47 kB / 271.3 MB, free: 8.242 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.08109/0.08109, allocations: 12.59 MB / 332.1 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000583/0.0005832, allocations: 12 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1175, allocations: 50.38 MB / 443 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample): time 0.002641/0.1202, allocations: 1.544 MB / 444.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001945/0.1222, allocations: 0.9837 MB / 445.5 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001619/0.1224, allocations: 7.938 kB / 445.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004383/0.1228, allocations: 63.78 kB / 445.6 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003339/0.1232, allocations: 75.72 kB / 445.6 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009518/0.1241, allocations: 203.6 kB / 445.8 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002965/0.1245, allocations: 143.5 kB / 446 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001513/0.1246, allocations: 29.55 kB / 446 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001164/0.1248, allocations: 63.7 kB / 446.1 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001206/0.1249, allocations: 63.62 kB / 446.1 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.514e-05/0.1249, allocations: 4 kB / 446.1 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001846/0.1251, allocations: 59.89 kB / 446.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.933e-05/0.1252, allocations: 35.91 kB / 446.2 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.1253, allocations: 89.19 kB / 446.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002611/0.1256, allocations: 175.9 kB / 446.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1256, allocations: 0 / 446.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1256, allocations: 0 / 446.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.1257, allocations: 0 / 446.5 MB, free: 12.59 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.0007934/0.1265, allocations: 0.4962 MB / 447 MB, free: 12.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.1265, allocations: 12.03 kB / 447 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.88e-05/0.1266, allocations: 24.64 kB / 447 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003789/0.127, allocations: 279.6 kB / 447.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.121e-05/0.127, allocations: 12.38 kB / 447.3 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.959e-05/0.1271, allocations: 8.125 kB / 447.3 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004018/0.1275, allocations: 163.6 kB / 447.5 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.1275, allocations: 0 / 447.5 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.83e-05/0.1275, allocations: 15.94 kB / 447.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.1275, allocations: 3.984 kB / 447.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001592/0.1277, allocations: 35.92 kB / 447.5 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005714/0.1283, allocations: 378.4 kB / 447.9 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002746/0.1286, allocations: 115.9 kB / 448 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.1287, allocations: 46.5 kB / 448 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.49e-05/0.1288, allocations: 7.984 kB / 448.1 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002455/0.129, allocations: 75.39 kB / 448.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.784e-06/0.129, allocations: 0 / 448.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004672/0.1295, allocations: 149.3 kB / 448.3 MB, free: 10.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.754e-05/0.1296, allocations: 162.5 kB / 448.4 MB, free: 10.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003709/0.13, allocations: 338.5 kB / 448.8 MB, free: 10.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.13, allocations: 29.7 kB / 448.8 MB, free: 9.984 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.137e-05/0.1301, allocations: 124.1 kB / 448.9 MB, free: 9.859 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.672e-05/0.1301, allocations: 15.81 kB / 448.9 MB, free: 9.844 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.053e-06/0.1301, allocations: 0 / 448.9 MB, free: 9.844 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.691e-05/0.1302, allocations: 338.8 kB / 449.3 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.393e-05/0.1303, allocations: 23.98 kB / 449.3 MB, free: 9.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.1305, allocations: 90.91 kB / 449.4 MB, free: 9.367 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001869/0.1307, allocations: 80.22 kB / 449.4 MB, free: 9.273 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1307, allocations: 7.938 kB / 449.5 MB, free: 9.266 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002518/0.1309, allocations: 117.4 kB / 449.6 MB, free: 9.145 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.131, allocations: 8 kB / 449.6 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.131, allocations: 0 / 449.6 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.131, allocations: 4 kB / 449.6 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.1312, allocations: 23.86 kB / 449.6 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.1312, allocations: 7.938 kB / 449.6 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.1313, allocations: 11.84 kB / 449.6 MB, free: 9.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.1313, allocations: 8.438 kB / 449.6 MB, free: 9.082 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,superSample.y,superSample.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001478/0.1315, allocations: 165.5 kB / 449.8 MB, free: 8.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.382e-05/0.1316, allocations: 65.36 kB / 449.9 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.847e-05/0.1316, allocations: 29.69 kB / 449.9 MB, free: 8.812 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.1317, allocations: 4 kB / 449.9 MB, free: 8.809 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.335e-05/0.1317, allocations: 0 / 449.9 MB, free: 8.809 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.1317, allocations: 7.922 kB / 449.9 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001979/0.1319, allocations: 237.6 kB / 450.1 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1319, allocations: 4.062 kB / 450.1 MB, free: 8.516 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.641e-05/0.132, allocations: 8 kB / 450.1 MB, free: 8.508 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.132, allocations: 4 kB / 450.1 MB, free: 8.504 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.1321, allocations: 3.984 kB / 450.2 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.1321, allocations: 7.938 kB / 450.2 MB, free: 8.492 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1321, allocations: 0 / 450.2 MB, free: 8.492 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002871/0.1324, allocations: 166.4 kB / 450.3 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/0.1325, allocations: 112.9 kB / 450.4 MB, free: 8.176 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.018e-05/0.1325, allocations: 8 kB / 450.4 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.889e-05/0.1326, allocations: 4 kB / 450.4 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.204e-05/0.1327, allocations: 7.984 kB / 450.5 MB, free: 8.156 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.173e-05/0.1328, allocations: 7.938 kB / 450.5 MB, free: 8.148 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002715/0.133, allocations: 241.9 kB / 450.7 MB, free: 7.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.133, allocations: 0 / 450.7 MB, free: 7.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004299/0.1335, allocations: 39.91 kB / 450.7 MB, free: 7.871 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,superSample.y,sample.y,superSample.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0013/0.1348, allocations: 433.7 kB / 451.2 MB, free: 7.438 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002827/0.1351, allocations: 67.91 kB / 451.2 MB, free: 7.371 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1351, allocations: 0 / 451.2 MB, free: 7.371 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.1352, allocations: 35.91 kB / 451.3 MB, free: 7.336 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005934/0.1358, allocations: 52.94 kB / 451.3 MB, free: 7.285 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007407/0.1366, allocations: 425.9 kB / 451.7 MB, free: 6.836 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002114/0.1368, allocations: 0.74 MB / 452.5 MB, free: 6.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.424e-05/0.1369, allocations: 23.42 kB / 452.5 MB, free: 6.051 MB / 298.7 MB Notification: Performance of SimCode: time 3.3e-07/0.1369, allocations: 4 kB / 452.5 MB, free: 6.047 MB / 298.7 MB Notification: Performance of Templates: time 0.006294/0.1432, allocations: 2.844 MB / 455.3 MB, free: 3.199 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches