Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.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.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00088/0.00088, allocations: 181.7 kB / 16.45 MB, free: 5.652 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.298/1.298, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0008078/0.0008078, allocations: 88.92 kB / 270.9 MB, free: 8.359 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.07527/0.07527, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006241/0.0006242, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.104, allocations: 50.39 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample): time 0.001754/0.1058, allocations: 1.238 MB / 443.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008471/0.1067, allocations: 0.4883 MB / 444.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.652e-05/0.1068, allocations: 4 kB / 444.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.489e-05/0.1069, allocations: 3.938 kB / 444.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001657/0.107, allocations: 7.938 kB / 444.1 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003084/0.1074, allocations: 39.89 kB / 444.2 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.1075, allocations: 39.86 kB / 444.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.1076, allocations: 11.98 kB / 444.2 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.848e-05/0.1077, allocations: 19.92 kB / 444.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.953e-05/0.1078, allocations: 15.86 kB / 444.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.088e-05/0.1078, allocations: 8 kB / 444.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.401e-05/0.1078, allocations: 0 / 444.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.792e-05/0.1079, allocations: 15.92 kB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.377e-05/0.1079, allocations: 37.64 kB / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.593e-05/0.108, allocations: 31.88 kB / 444.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.108, allocations: 4 kB / 444.3 MB, free: 14.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.108, allocations: 0 / 444.3 MB, free: 14.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.1081, allocations: 0 / 444.3 MB, free: 14.46 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004985/0.1086, allocations: 367.3 kB / 444.7 MB, free: 14.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.1086, allocations: 12.03 kB / 444.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.384e-05/0.1087, allocations: 7.906 kB / 444.7 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002146/0.1089, allocations: 194.8 kB / 444.9 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.1089, allocations: 3.984 kB / 444.9 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.64e-05/0.109, allocations: 4 kB / 444.9 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003137/0.1093, allocations: 109 kB / 445 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.1093, allocations: 0 / 445 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.1093, allocations: 4 kB / 445 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.1093, allocations: 0 / 445 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001101/0.1095, allocations: 15.98 kB / 445 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003161/0.1098, allocations: 269.7 kB / 445.3 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.702e-05/0.1099, allocations: 45.28 kB / 445.3 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.922e-05/0.11, allocations: 25.64 kB / 445.4 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.11, allocations: 7.984 kB / 445.4 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.844e-05/0.1101, allocations: 42.5 kB / 445.4 MB, free: 13.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.693e-06/0.1101, allocations: 0 / 445.4 MB, free: 13.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.000349/0.1104, allocations: 73.52 kB / 445.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.1105, allocations: 81.36 kB / 445.6 MB, free: 13.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.1106, allocations: 142.1 kB / 445.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.02e-05/0.1106, allocations: 25.7 kB / 445.7 MB, free: 12.83 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.25e-05/0.1107, allocations: 100.1 kB / 445.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.503e-05/0.1107, allocations: 3.906 kB / 445.8 MB, free: 12.72 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.537e-06/0.1107, allocations: 0 / 445.8 MB, free: 12.72 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.325e-05/0.1108, allocations: 318.8 kB / 446.1 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.67e-05/0.1109, allocations: 8 kB / 446.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.728e-05/0.1109, allocations: 25.7 kB / 446.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.16e-05/0.111, allocations: 15.94 kB / 446.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.111, allocations: 0 / 446.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000165/0.1112, allocations: 53.75 kB / 446.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.1112, allocations: 8 kB / 446.3 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1112, allocations: 3.984 kB / 446.3 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.1113, allocations: 0 / 446.3 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.191e-05/0.1114, allocations: 8 kB / 446.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.1114, allocations: 3.953 kB / 446.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.407e-05/0.1114, allocations: 7.938 kB / 446.3 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.1115, allocations: 7.938 kB / 446.3 MB, free: 12.25 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.928e-05/0.1116, allocations: 121.7 kB / 446.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.358e-05/0.1116, allocations: 37.61 kB / 446.4 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.529e-05/0.1117, allocations: 15.81 kB / 446.5 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.1117, allocations: 0 / 446.5 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.1117, allocations: 4 kB / 446.5 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.1117, allocations: 3.953 kB / 446.5 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001829/0.1119, allocations: 165.7 kB / 446.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1119, allocations: 0 / 446.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.78e-05/0.112, allocations: 8 kB / 446.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.112, allocations: 0 / 446.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.112, allocations: 4.031 kB / 446.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.112, allocations: 0 / 446.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.112, allocations: 0 / 446.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001856/0.1122, allocations: 172.2 kB / 446.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.789e-05/0.1123, allocations: 101 kB / 446.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.1123, allocations: 0 / 446.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.1124, allocations: 4 kB / 446.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.844e-05/0.1125, allocations: 3.984 kB / 446.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.1125, allocations: 4 kB / 446.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.9e-05/0.1126, allocations: 107.2 kB / 447 MB, free: 11.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1126, allocations: 0 / 447 MB, free: 11.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003602/0.113, allocations: 4 kB / 447 MB, free: 11.41 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 8.146e-05/0.1131, allocations: 95.25 kB / 447.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001754/0.1132, allocations: 31.91 kB / 447.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1133, allocations: 0 / 447.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.473e-05/0.1133, allocations: 8 kB / 447.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005183/0.1139, allocations: 20.02 kB / 447.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003541/0.1142, allocations: 207.6 kB / 447.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000189/0.1144, allocations: 0.6887 MB / 448.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.032e-05/0.1145, allocations: 11.44 kB / 448.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of SimCode: time 3.61e-07/0.1145, allocations: 0 / 448.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of Templates: time 0.002282/0.1168, allocations: 0.7188 MB / 448.8 MB, free: 9.566 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches