Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.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 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 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 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_Synchronous.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001973/0.001973, allocations: 102.1 kB / 16.45 MB, free: 6.438 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.002797/0.002797, allocations: 190 kB / 17.39 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.708/1.708, allocations: 205.1 MB / 223.3 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08704/0.08704, allocations: 12.6 MB / 283.2 MB, free: 15.39 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002229/0.002229, allocations: 88.39 kB / 394.2 MB, free: 45.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1196, allocations: 49.41 MB / 443.6 MB, free: 488 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.003051/0.1227, allocations: 1.528 MB / 445.1 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004424/0.1231, allocations: 139.5 kB / 445.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.1233, allocations: 8 kB / 445.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.857e-05/0.1233, allocations: 3.938 kB / 445.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001625/0.1235, allocations: 3.938 kB / 445.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000265/0.1238, allocations: 43.89 kB / 445.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00012/0.1239, allocations: 31.86 kB / 445.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.124, allocations: 19.92 kB / 445.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.221e-05/0.1241, allocations: 19.91 kB / 445.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.963e-05/0.1241, allocations: 11.94 kB / 445.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.424e-05/0.1242, allocations: 4 kB / 445.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.473e-05/0.1242, allocations: 4 kB / 445.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.552e-05/0.1243, allocations: 19.86 kB / 445.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.546e-05/0.1243, allocations: 19.81 kB / 445.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001421/0.1245, allocations: 47.81 kB / 445.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.1245, allocations: 0 / 445.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.1245, allocations: 0 / 445.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.715e-06/0.1245, allocations: 0 / 445.5 MB, free: 14.57 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005638/0.1251, allocations: 367.2 kB / 445.8 MB, free: 14.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.1251, allocations: 16.03 kB / 445.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.494e-05/0.1252, allocations: 8.844 kB / 445.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.1255, allocations: 196.1 kB / 446 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.1255, allocations: 8.312 kB / 446.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.608e-05/0.1255, allocations: 8.359 kB / 446.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003555/0.1259, allocations: 117.5 kB / 446.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.1259, allocations: 192 / 446.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.1259, allocations: 7.938 kB / 446.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.1259, allocations: 0 / 446.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.198e-05/0.126, allocations: 19.98 kB / 446.2 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004486/0.1265, allocations: 257.8 kB / 446.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002771/0.1268, allocations: 142.2 kB / 446.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.352e-05/0.1268, allocations: 33.64 kB / 446.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/0.1269, allocations: 0 / 446.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.591e-05/0.1269, allocations: 42.56 kB / 446.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.273e-06/0.1269, allocations: 0 / 446.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002949/0.1272, allocations: 77.52 kB / 446.7 MB, free: 13.08 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.579e-05/0.1273, allocations: 85.09 kB / 446.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.1275, allocations: 126.1 kB / 447 MB, free: 12.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.1275, allocations: 33.7 kB / 447 MB, free: 12.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.423e-05/0.1276, allocations: 80.27 kB / 447.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.82e-05/0.1276, allocations: 8 kB / 447.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.272e-05/0.1277, allocations: 17.62 kB / 447.1 MB, free: 12.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.1279, allocations: 322.8 kB / 447.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.795e-05/0.1279, allocations: 4 kB / 447.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.35e-05/0.128, allocations: 35.42 kB / 447.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.801e-05/0.1281, allocations: 51.36 kB / 447.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1281, allocations: 0 / 447.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001459/0.1282, allocations: 69.48 kB / 447.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.1283, allocations: 12.12 kB / 447.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.1283, allocations: 0 / 447.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.1283, allocations: 0 / 447.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.165e-05/0.1284, allocations: 8 kB / 447.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.1284, allocations: 4 kB / 447.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.761e-05/0.1284, allocations: 3.984 kB / 447.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.1285, allocations: 7.938 kB / 447.6 MB, free: 12.14 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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.0001032/0.1286, allocations: 117.8 kB / 447.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.527e-05/0.1287, allocations: 57.53 kB / 447.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.408e-05/0.1287, allocations: 12.25 kB / 447.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.1287, allocations: 0 / 447.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.1287, allocations: 0 / 447.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1288, allocations: 336 / 447.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002199/0.129, allocations: 177.6 kB / 448 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.129, allocations: 0 / 448 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.586e-05/0.129, allocations: 11.98 kB / 448 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.129, allocations: 0 / 448 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.1291, allocations: 3.984 kB / 448 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1291, allocations: 0 / 448 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1291, allocations: 0 / 448 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002168/0.1293, allocations: 180.2 kB / 448.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.586e-05/0.1294, allocations: 92.94 kB / 448.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.1294, allocations: 0 / 448.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.824e-05/0.1295, allocations: 4 kB / 448.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.437e-05/0.1295, allocations: 3.938 kB / 448.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-06/0.1295, allocations: 8 kB / 448.3 MB, free: 11.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.343e-05/0.1296, allocations: 103.2 kB / 448.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1296, allocations: 0 / 448.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002256/0.1298, allocations: 8 kB / 448.4 MB, free: 11.27 MB / 334.1 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 (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0001039/0.1299, allocations: 95.25 kB / 448.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001442/0.1301, allocations: 27.92 kB / 448.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1301, allocations: 0 / 448.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.669e-05/0.1301, allocations: 12.23 kB / 448.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003698/0.1305, allocations: 19.97 kB / 448.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003215/0.1309, allocations: 150.4 kB / 448.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.1312, allocations: 0.6885 MB / 449.3 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.534e-05/0.1312, allocations: 4 kB / 449.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.427e-05/0.1312, allocations: 7.438 kB / 449.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1312, allocations: 8.062 kB / 449.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of Templates: time 0.003055/0.1343, allocations: 0.5043 MB / 449.9 MB, free: 9.695 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches