Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007868/0.007868, allocations: 91.31 kB / 15.91 MB, free: 6.309 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.001551/0.001551, allocations: 198.5 kB / 16.83 MB, free: 6.238 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.547/1.547, allocations: 205.1 MB / 222.7 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07942/0.07942, allocations: 12.59 MB / 282.6 MB, free: 8.844 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.001636/0.001637, allocations: 75.89 kB / 342.8 MB, free: 21.19 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.109, allocations: 49.4 MB / 392.2 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1): time 0.003628/0.1127, allocations: 1.629 MB / 393.8 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.114, allocations: 0.4996 MB / 394.3 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.1141, allocations: 8 kB / 394.3 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.924e-05/0.1142, allocations: 7.922 kB / 394.3 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001723/0.1144, allocations: 3.938 kB / 394.3 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003087/0.1147, allocations: 35.91 kB / 394.4 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000109/0.1148, allocations: 39.86 kB / 394.4 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.115, allocations: 19.97 kB / 394.4 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.865e-05/0.1151, allocations: 23.86 kB / 394.4 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.106e-05/0.1151, allocations: 19.86 kB / 394.5 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.537e-05/0.1152, allocations: 8 kB / 394.5 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.48e-05/0.1152, allocations: 0 / 394.5 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.13e-05/0.1153, allocations: 11.94 kB / 394.5 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.007e-05/0.1153, allocations: 23.86 kB / 394.5 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001431/0.1155, allocations: 51.75 kB / 394.6 MB, free: 1.309 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1155, allocations: 0 / 394.6 MB, free: 1.309 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1155, allocations: 0 / 394.6 MB, free: 1.309 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.303e-06/0.1155, allocations: 0 / 394.6 MB, free: 1.309 MB / 286.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.0007114/0.1162, allocations: 375.4 kB / 394.9 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.005e-05/0.1163, allocations: 16.03 kB / 394.9 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.754e-05/0.1164, allocations: 8.844 kB / 395 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002731/0.1167, allocations: 197.1 kB / 395.1 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.1167, allocations: 384 / 395.1 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.85e-05/0.1167, allocations: 8.375 kB / 395.2 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003747/0.1171, allocations: 129.2 kB / 395.3 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.1171, allocations: 0 / 395.3 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.1171, allocations: 0 / 395.3 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.1172, allocations: 0 / 395.3 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001063/0.1173, allocations: 19.98 kB / 395.3 MB, free: 480 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003838/0.1177, allocations: 265.7 kB / 395.6 MB, free: 160 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000269/0.1179, allocations: 142.2 kB / 395.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.548e-05/0.118, allocations: 33.77 kB / 395.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.1181, allocations: 0 / 395.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.444e-05/0.1181, allocations: 38.56 kB / 395.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.1181, allocations: 3.938 kB / 395.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002847/0.1184, allocations: 77.52 kB / 395.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.989e-05/0.1185, allocations: 81.11 kB / 395.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.1187, allocations: 141.1 kB / 396.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.1187, allocations: 25.7 kB / 396.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.751e-05/0.1188, allocations: 88.14 kB / 396.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.825e-05/0.1188, allocations: 128 / 396.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.807e-05/0.1189, allocations: 25.62 kB / 396.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.119, allocations: 322.8 kB / 396.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.769e-05/0.1191, allocations: 11.98 kB / 396.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.993e-05/0.1191, allocations: 27.44 kB / 396.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.585e-05/0.1192, allocations: 51.36 kB / 396.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1192, allocations: 0 / 396.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001428/0.1194, allocations: 69.55 kB / 396.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.1194, allocations: 8 kB / 396.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.1194, allocations: 4.406 kB / 396.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.1194, allocations: 4 kB / 396.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.834e-05/0.1195, allocations: 11.98 kB / 396.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.1195, allocations: 0 / 396.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.191e-05/0.1196, allocations: 4 kB / 396.7 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.1196, allocations: 4 kB / 396.7 MB, free: 14.87 MB / 302.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.0001115/0.1197, allocations: 121.8 kB / 396.8 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.674e-05/0.1198, allocations: 53.53 kB / 396.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.985e-05/0.1199, allocations: 16.23 kB / 396.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1199, allocations: 4 kB / 396.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1199, allocations: 0 / 396.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1199, allocations: 3.938 kB / 396.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000205/0.1201, allocations: 173.6 kB / 397.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.1201, allocations: 0 / 397.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.69e-05/0.1202, allocations: 11.98 kB / 397.1 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1202, allocations: 0 / 397.1 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.1202, allocations: 0 / 397.1 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1202, allocations: 0 / 397.1 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1202, allocations: 0 / 397.1 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002014/0.1204, allocations: 180.2 kB / 397.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.073e-05/0.1205, allocations: 93 kB / 397.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.89e-05/0.1205, allocations: 7.938 kB / 397.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.626e-05/0.1206, allocations: 0 / 397.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.707e-05/0.1206, allocations: 4 kB / 397.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.1206, allocations: 3.984 kB / 397.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.489e-05/0.1207, allocations: 107.3 kB / 397.5 MB, free: 14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1207, allocations: 0 / 397.5 MB, free: 14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000225/0.121, allocations: 11.94 kB / 397.5 MB, free: 13.98 MB / 302.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.0001182/0.1211, allocations: 91.25 kB / 397.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001497/0.1213, allocations: 31.91 kB / 397.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1213, allocations: 0 / 397.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.582e-05/0.1213, allocations: 12.25 kB / 397.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004613/0.1218, allocations: 35.95 kB / 397.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004446/0.1222, allocations: 188.9 kB / 397.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005423/0.1228, allocations: 0.6926 MB / 398.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.082e-05/0.1228, allocations: 4 kB / 398.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.621e-05/0.1229, allocations: 15.42 kB / 398.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1229, allocations: 0 / 398.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of Templates: time 0.003122/0.126, allocations: 494.1 kB / 399 MB, free: 12.38 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches