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.001152/0.001152, allocations: 110.1 kB / 16.45 MB, free: 6.441 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.001172/0.001173, allocations: 186.4 kB / 17.39 MB, free: 5.688 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.561/1.561, allocations: 205.1 MB / 223.3 MB, free: 12.21 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.07387/0.07387, 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.001915/0.001915, allocations: 91.39 kB / 394.2 MB, free: 45.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1113, allocations: 49.41 MB / 443.6 MB, free: 484 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1): time 0.002856/0.1142, allocations: 1.548 MB / 445.1 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009735/0.1152, allocations: 0.5113 MB / 445.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.1153, allocations: 4 kB / 445.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.729e-05/0.1154, allocations: 3.938 kB / 445.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001794/0.1156, allocations: 15.8 kB / 445.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003218/0.1159, allocations: 43.89 kB / 445.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.116, allocations: 43.84 kB / 445.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001827/0.1162, allocations: 27.91 kB / 445.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.027e-05/0.1163, allocations: 19.94 kB / 445.8 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.269e-05/0.1164, allocations: 19.86 kB / 445.8 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.256e-05/0.1164, allocations: 4 kB / 445.8 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.329e-05/0.1164, allocations: 4 kB / 445.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.082e-05/0.1165, allocations: 19.91 kB / 445.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.899e-05/0.1166, allocations: 19.81 kB / 445.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.1167, allocations: 55.75 kB / 445.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.1167, allocations: 4 kB / 445.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.1168, allocations: 0 / 445.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.1168, allocations: 0 / 445.9 MB, free: 14.12 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.000553/0.1173, allocations: 371.2 kB / 446.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.1174, allocations: 12.03 kB / 446.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.419e-05/0.1174, allocations: 8.844 kB / 446.3 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.1177, allocations: 204 kB / 446.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.006e-05/0.1177, allocations: 8.359 kB / 446.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.803e-05/0.1178, allocations: 4.375 kB / 446.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000328/0.1181, allocations: 121.3 kB / 446.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.1181, allocations: 0 / 446.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.1181, allocations: 0 / 446.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.1181, allocations: 0 / 446.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.226e-05/0.1182, allocations: 23.98 kB / 446.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003454/0.1186, allocations: 265.7 kB / 446.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00023/0.1188, allocations: 138.3 kB / 447 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.476e-05/0.1189, allocations: 33.77 kB / 447.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.1189, allocations: 3.938 kB / 447.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.119, allocations: 38.56 kB / 447.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.764e-06/0.119, allocations: 0 / 447.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002726/0.1192, allocations: 77.52 kB / 447.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.762e-05/0.1193, allocations: 81.23 kB / 447.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001141/0.1194, allocations: 145.5 kB / 447.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.1194, allocations: 25.7 kB / 447.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.295e-05/0.1195, allocations: 92.05 kB / 447.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.489e-05/0.1195, allocations: 4 kB / 447.5 MB, free: 12.24 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.181e-05/0.1196, allocations: 13.72 kB / 447.6 MB, free: 12.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.1197, allocations: 326.8 kB / 447.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.709e-05/0.1197, allocations: 4 kB / 447.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.67e-05/0.1198, allocations: 39.42 kB / 447.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.152e-05/0.1199, allocations: 47.36 kB / 448 MB, free: 11.78 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1199, allocations: 8 kB / 448 MB, free: 11.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001256/0.12, allocations: 73.45 kB / 448 MB, free: 11.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.12, allocations: 8 kB / 448 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.12, allocations: 0 / 448 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.1201, allocations: 0 / 448 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.342e-05/0.1201, allocations: 11.98 kB / 448.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.1202, allocations: 4 kB / 448.1 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.732e-05/0.1202, allocations: 128 / 448.1 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.1202, allocations: 8 kB / 448.1 MB, free: 11.66 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 8.197e-05/0.1203, allocations: 117.8 kB / 448.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.117e-05/0.1204, allocations: 53.53 kB / 448.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.651e-05/0.1204, allocations: 24.11 kB / 448.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1204, allocations: 0 / 448.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1204, allocations: 0 / 448.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1205, allocations: 336 / 448.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002388/0.1207, allocations: 177.5 kB / 448.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.1207, allocations: 0 / 448.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.279e-05/0.1208, allocations: 15.98 kB / 448.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.1208, allocations: 3.984 kB / 448.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.144e-06/0.1208, allocations: 0 / 448.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.345e-05/0.1209, allocations: 4 kB / 448.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1209, allocations: 4 kB / 448.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000176/0.121, allocations: 172.2 kB / 448.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.009e-05/0.1211, allocations: 97 kB / 448.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.271e-05/0.1211, allocations: 0 / 448.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.369e-05/0.1212, allocations: 4 kB / 448.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.336e-05/0.1212, allocations: 0 / 448.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-06/0.1212, allocations: 4 kB / 448.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.096e-05/0.1213, allocations: 107.2 kB / 448.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1213, allocations: 0 / 448.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002448/0.1216, allocations: 8 kB / 448.8 MB, free: 10.78 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 9.822e-05/0.1217, allocations: 95.25 kB / 448.9 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000147/0.1218, allocations: 35.91 kB / 449 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1218, allocations: 0 / 449 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.413e-05/0.1219, allocations: 8 kB / 449 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.1222, allocations: 23.95 kB / 449 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003372/0.1226, allocations: 159.9 kB / 449.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003023/0.1229, allocations: 0.6924 MB / 449.9 MB, free: 9.707 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.967e-05/0.1229, allocations: 4 kB / 449.9 MB, free: 9.703 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.187e-05/0.123, allocations: 11.44 kB / 449.9 MB, free: 9.691 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.123, allocations: 4 kB / 449.9 MB, free: 9.688 MB / 334.1 MB Notification: Performance of Templates: time 0.003044/0.126, allocations: 0.5278 MB / 450.4 MB, free: 9.16 MB / 334.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches