Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 102.5 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.001574/0.001575, 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.628/1.628, allocations: 205.1 MB / 223.3 MB, free: 12.22 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.08053/0.08053, allocations: 12.59 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.002094/0.002094, allocations: 89.28 kB / 394.2 MB, free: 45.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1311, allocations: 49.4 MB / 443.6 MB, free: 476 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.002907/0.1341, allocations: 1.532 MB / 445.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009327/0.135, allocations: 0.5035 MB / 445.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.1352, allocations: 0 / 445.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.074e-05/0.1352, allocations: 7.922 kB / 445.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001416/0.1354, allocations: 19.86 kB / 445.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002632/0.1356, allocations: 35.88 kB / 445.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001188/0.1358, allocations: 39.8 kB / 445.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.1359, allocations: 19.97 kB / 445.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.685e-05/0.136, allocations: 19.94 kB / 445.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.517e-05/0.136, allocations: 15.92 kB / 445.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.187e-05/0.1361, allocations: 4 kB / 445.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.38e-05/0.1361, allocations: 4 kB / 445.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.459e-05/0.1361, allocations: 19.91 kB / 445.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.691e-05/0.1362, allocations: 19.81 kB / 445.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001244/0.1363, allocations: 47.7 kB / 445.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1363, allocations: 0 / 445.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1363, allocations: 0 / 445.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.1364, allocations: 4 kB / 445.9 MB, free: 14.16 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005302/0.1369, allocations: 375.2 kB / 446.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.1369, allocations: 8.031 kB / 446.2 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.774e-05/0.137, allocations: 8.844 kB / 446.2 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.1373, allocations: 200 kB / 446.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.1373, allocations: 384 / 446.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.25e-05/0.1373, allocations: 4.375 kB / 446.4 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.1376, allocations: 101.4 kB / 446.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.1376, allocations: 0 / 446.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.1376, allocations: 0 / 446.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.1376, allocations: 0 / 446.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.696e-05/0.1377, allocations: 23.92 kB / 446.6 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003399/0.138, allocations: 265.7 kB / 446.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.039e-05/0.1381, allocations: 45.14 kB / 446.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.088e-05/0.1382, allocations: 21.78 kB / 446.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.1382, allocations: 0 / 446.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.1383, allocations: 34.56 kB / 446.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.262e-06/0.1383, allocations: 0 / 446.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002518/0.1385, allocations: 69.52 kB / 447 MB, free: 12.83 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.882e-05/0.1386, allocations: 77.11 kB / 447.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.1387, allocations: 145.5 kB / 447.2 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.1388, allocations: 29.95 kB / 447.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.16e-05/0.1388, allocations: 92.14 kB / 447.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.1388, allocations: 3.906 kB / 447.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.649e-05/0.1389, allocations: 13.72 kB / 447.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.139, allocations: 322.8 kB / 447.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.756e-05/0.139, allocations: 4 kB / 447.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.329e-05/0.1391, allocations: 21.7 kB / 447.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.55e-05/0.1392, allocations: 37.7 kB / 447.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1392, allocations: 0 / 447.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001127/0.1393, allocations: 53.62 kB / 447.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.1393, allocations: 4 kB / 447.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1393, allocations: 0 / 447.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.1394, allocations: 0 / 447.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.769e-05/0.1394, allocations: 16.05 kB / 447.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.1395, allocations: 0 / 447.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.348e-05/0.1395, allocations: 0 / 447.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.428e-06/0.1395, allocations: 7.938 kB / 447.8 MB, free: 11.95 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.824e-05/0.1396, allocations: 117.8 kB / 447.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.666e-05/0.1397, allocations: 41.59 kB / 448 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.317e-05/0.1397, allocations: 11.83 kB / 448 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.1397, allocations: 0 / 448 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1397, allocations: 7.938 kB / 448 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1397, allocations: 4.031 kB / 448 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001655/0.1399, allocations: 169.6 kB / 448.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1399, allocations: 0 / 448.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.382e-05/0.14, allocations: 7.984 kB / 448.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.14, allocations: 4 kB / 448.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.383e-06/0.14, allocations: 0 / 448.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.14, allocations: 0 / 448.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.14, allocations: 4 kB / 448.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001675/0.1402, allocations: 176.2 kB / 448.3 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.271e-05/0.1402, allocations: 89 kB / 448.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.324e-05/0.1402, allocations: 0 / 448.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.458e-05/0.1403, allocations: 7.938 kB / 448.4 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.144e-05/0.1404, allocations: 3.938 kB / 448.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.1404, allocations: 4 kB / 448.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.567e-05/0.1404, allocations: 103.2 kB / 448.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1404, allocations: 4.031 kB / 448.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000211/0.1407, allocations: 8 kB / 448.6 MB, free: 11.1 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 (2): * Single equations (assignments): 2 * 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.0001059/0.1408, allocations: 95.25 kB / 448.6 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001295/0.1409, allocations: 19.98 kB / 448.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1409, allocations: 0 / 448.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.85e-05/0.141, allocations: 11.92 kB / 448.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.1413, allocations: 16.25 kB / 448.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003296/0.1416, allocations: 159.5 kB / 448.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.1419, allocations: 0.6846 MB / 449.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.492e-05/0.1419, allocations: 4 kB / 449.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.559e-05/0.142, allocations: 7.438 kB / 449.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.142, allocations: 0 / 449.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of Templates: time 0.002388/0.1444, allocations: 488.3 kB / 450 MB, free: 9.562 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches