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.00137/0.00137, allocations: 184.4 kB / 16.45 MB, free: 5.656 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.522/1.522, allocations: 205.4 MB / 222.6 MB, free: 9.102 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.0007528/0.0007527, allocations: 86.31 kB / 270.9 MB, free: 8.344 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.08338/0.08338, allocations: 12.6 MB / 331.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006887/0.000689, allocations: 15.98 kB / 392 MB, free: 66.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08293/0.08365, allocations: 50.37 MB / 442.4 MB, free: 16.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample): time 0.001842/0.08553, allocations: 1.548 MB / 443.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.08684, allocations: 0.9954 MB / 444.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.08698, allocations: 3.938 kB / 444.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000272/0.08727, allocations: 55.8 kB / 445 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002068/0.08749, allocations: 83.7 kB / 445.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006134/0.08811, allocations: 199.6 kB / 445.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001932/0.08831, allocations: 143.5 kB / 445.4 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.663e-05/0.08842, allocations: 25.55 kB / 445.4 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.047e-05/0.08852, allocations: 67.69 kB / 445.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.952e-05/0.08861, allocations: 59.69 kB / 445.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.197e-05/0.08864, allocations: 4 kB / 445.5 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001321/0.08878, allocations: 51.92 kB / 445.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.813e-05/0.08885, allocations: 39.88 kB / 445.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.335e-05/0.0889, allocations: 57.58 kB / 445.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001831/0.08909, allocations: 160 kB / 445.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.0891, allocations: 3.984 kB / 445.9 MB, free: 12.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.08911, allocations: 0 / 445.9 MB, free: 12.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.08912, allocations: 8 kB / 445.9 MB, free: 12.93 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.0005853/0.08971, allocations: 0.5038 MB / 446.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.08976, allocations: 8.031 kB / 446.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.804e-05/0.08982, allocations: 27.66 kB / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002942/0.09012, allocations: 282.4 kB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.09015, allocations: 0 / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.459e-05/0.09017, allocations: 4 kB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000284/0.09046, allocations: 159.5 kB / 446.8 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.09048, allocations: 3.938 kB / 446.8 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.514e-05/0.0905, allocations: 8 kB / 446.8 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.09051, allocations: 4 kB / 446.8 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000102/0.09062, allocations: 31.97 kB / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004047/0.09103, allocations: 382.4 kB / 447.3 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000206/0.09125, allocations: 119.9 kB / 447.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.36e-05/0.09133, allocations: 42.56 kB / 447.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.935e-05/0.09137, allocations: 8.062 kB / 447.4 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001772/0.09156, allocations: 83.31 kB / 447.5 MB, free: 11.06 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.054e-06/0.09157, allocations: 0 / 447.5 MB, free: 11.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.000329/0.0919, allocations: 153.3 kB / 447.7 MB, free: 10.9 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/0.09196, allocations: 166.1 kB / 447.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000239/0.09221, allocations: 322.7 kB / 448.1 MB, free: 10.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.09223, allocations: 25.7 kB / 448.2 MB, free: 10.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.077e-05/0.0923, allocations: 140.2 kB / 448.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.032e-05/0.09233, allocations: 19.81 kB / 448.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.14e-06/0.09234, allocations: 0 / 448.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.914e-05/0.09239, allocations: 330.8 kB / 448.6 MB, free: 9.855 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.206e-05/0.09246, allocations: 23.98 kB / 448.7 MB, free: 9.832 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.802e-05/0.09255, allocations: 82.86 kB / 448.7 MB, free: 9.727 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.183e-05/0.09263, allocations: 31.98 kB / 448.8 MB, free: 9.695 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.09264, allocations: 4 kB / 448.8 MB, free: 9.691 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001879/0.09283, allocations: 117.4 kB / 448.9 MB, free: 9.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.09285, allocations: 4 kB / 448.9 MB, free: 9.566 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.09286, allocations: 4.125 kB / 448.9 MB, free: 9.562 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.09288, allocations: 4 kB / 448.9 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.09299, allocations: 31.86 kB / 448.9 MB, free: 9.527 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.093, allocations: 0 / 448.9 MB, free: 9.527 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.483e-05/0.09308, allocations: 7.953 kB / 448.9 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-06/0.09309, allocations: 7.984 kB / 448.9 MB, free: 9.512 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.0001037/0.0932, allocations: 158.4 kB / 449.1 MB, free: 9.348 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.27e-05/0.09327, allocations: 69.34 kB / 449.2 MB, free: 9.273 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.423e-05/0.09332, allocations: 25.78 kB / 449.2 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.09333, allocations: 3.984 kB / 449.2 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.09334, allocations: 4.312 kB / 449.2 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.09335, allocations: 0 / 449.2 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001329/0.09349, allocations: 245.4 kB / 449.4 MB, free: 8.953 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.0935, allocations: 3.938 kB / 449.4 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.988e-05/0.09356, allocations: 12 kB / 449.5 MB, free: 8.938 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.09357, allocations: 3.984 kB / 449.5 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.09359, allocations: 4 kB / 449.5 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.0936, allocations: 0 / 449.5 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.0936, allocations: 11.94 kB / 449.5 MB, free: 8.918 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002015/0.09381, allocations: 158.5 kB / 449.6 MB, free: 8.738 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.522e-05/0.0939, allocations: 116.8 kB / 449.7 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.97e-05/0.09393, allocations: 4 kB / 449.7 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.759e-05/0.09401, allocations: 8 kB / 449.8 MB, free: 8.594 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.91e-05/0.09406, allocations: 16.02 kB / 449.8 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.09408, allocations: 4 kB / 449.8 MB, free: 8.574 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001722/0.09426, allocations: 241.9 kB / 450 MB, free: 8.336 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.09427, allocations: 0 / 450 MB, free: 8.336 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002327/0.09451, allocations: 28 kB / 450 MB, free: 8.309 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.0007378/0.09525, allocations: 427.5 kB / 450.5 MB, free: 7.883 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001879/0.09545, allocations: 72.09 kB / 450.5 MB, free: 7.812 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.09546, allocations: 4 kB / 450.5 MB, free: 7.809 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.799e-05/0.09553, allocations: 31.92 kB / 450.6 MB, free: 7.777 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003538/0.0959, allocations: 56.5 kB / 450.6 MB, free: 7.723 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004781/0.09638, allocations: 422.1 kB / 451 MB, free: 7.277 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001395/0.09654, allocations: 0.7439 MB / 451.8 MB, free: 6.508 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.594e-05/0.09659, allocations: 27.42 kB / 451.8 MB, free: 6.484 MB / 298.7 MB Notification: Performance of SimCode: time 2.7e-07/0.09659, allocations: 0 / 451.8 MB, free: 6.484 MB / 298.7 MB Notification: Performance of Templates: time 0.003976/0.1006, allocations: 2.863 MB / 454.7 MB, free: 3.617 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