Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.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.0008467/0.0008466, allocations: 89.67 kB / 16.31 MB, free: 5.543 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.0008531/0.0008531, allocations: 184.5 kB / 17.21 MB, free: 5.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 223.3 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000277/0.000277, allocations: 4 kB / 300.8 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1118, allocations: 50.43 MB / 351.3 MB, free: 3.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.001811/0.1136, allocations: 1.241 MB / 352.5 MB, free: 2.535 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007048/0.1143, allocations: 459.2 kB / 352.9 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.476e-05/0.1144, allocations: 4 kB / 352.9 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.038e-05/0.1145, allocations: 3.938 kB / 353 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001174/0.1146, allocations: 7.922 kB / 353 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002377/0.1148, allocations: 43.84 kB / 353 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.094e-05/0.1149, allocations: 39.84 kB / 353 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.775e-05/0.115, allocations: 8 kB / 353 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.203e-05/0.1151, allocations: 15.92 kB / 353.1 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.881e-05/0.1152, allocations: 23.86 kB / 353.1 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.572e-05/0.1152, allocations: 0 / 353.1 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.213e-05/0.1152, allocations: 0 / 353.1 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.28e-05/0.1152, allocations: 4 kB / 353.1 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.101e-05/0.1153, allocations: 37.64 kB / 353.1 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.316e-05/0.1154, allocations: 35.92 kB / 353.2 MB, free: 1.855 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1154, allocations: 0 / 353.2 MB, free: 1.855 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1154, allocations: 4 kB / 353.2 MB, free: 1.852 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.146e-06/0.1154, allocations: 0 / 353.2 MB, free: 1.852 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004531/0.1158, allocations: 363.2 kB / 353.5 MB, free: 1.449 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.1159, allocations: 8.031 kB / 353.5 MB, free: 1.441 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.066e-05/0.1159, allocations: 7.906 kB / 353.5 MB, free: 1.434 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00019/0.1161, allocations: 182.8 kB / 353.7 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.1162, allocations: 8 kB / 353.7 MB, free: 1.207 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.144e-05/0.1162, allocations: 0 / 353.7 MB, free: 1.207 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002763/0.1165, allocations: 97.09 kB / 353.8 MB, free: 1.094 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.1165, allocations: 3.938 kB / 353.8 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.1165, allocations: 0 / 353.8 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.1165, allocations: 3.953 kB / 353.8 MB, free: 1.086 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.946e-05/0.1166, allocations: 19.98 kB / 353.8 MB, free: 1.066 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003244/0.1169, allocations: 265.8 kB / 354.1 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.233e-05/0.117, allocations: 49.14 kB / 354.2 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.144e-05/0.1171, allocations: 17.78 kB / 354.2 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.1171, allocations: 7.984 kB / 354.2 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.1171, allocations: 38.52 kB / 354.2 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.1172, allocations: 0 / 354.2 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002383/0.1174, allocations: 69.53 kB / 354.3 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.033e-05/0.1175, allocations: 89.28 kB / 354.4 MB, free: 440 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.1176, allocations: 134 kB / 354.5 MB, free: 296 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.1176, allocations: 25.7 kB / 354.5 MB, free: 264 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.113e-05/0.1177, allocations: 88.14 kB / 354.6 MB, free: 172 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.194e-05/0.1177, allocations: 0 / 354.6 MB, free: 172 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-06/0.1177, allocations: 0 / 354.6 MB, free: 172 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.1178, allocations: 322.8 kB / 354.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.907e-05/0.1179, allocations: 4 kB / 354.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.478e-05/0.1179, allocations: 29.7 kB / 355 MB, free: 15.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.206e-05/0.118, allocations: 11.94 kB / 355 MB, free: 15.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.118, allocations: 0 / 355 MB, free: 15.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001248/0.1181, allocations: 69.58 kB / 355 MB, free: 15.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.1181, allocations: 6.812 kB / 355 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.1181, allocations: 7.953 kB / 355.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.1182, allocations: 0 / 355.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.439e-05/0.1182, allocations: 4 kB / 355.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.1183, allocations: 0 / 355.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.141e-05/0.1183, allocations: 11.92 kB / 355.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-06/0.1183, allocations: 0 / 355.1 MB, free: 15.69 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.95e-05/0.1184, allocations: 121.9 kB / 355.2 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.21e-05/0.1185, allocations: 41.53 kB / 355.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.718e-05/0.1185, allocations: 11.88 kB / 355.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.1185, allocations: 3.953 kB / 355.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.1185, allocations: 0 / 355.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.1185, allocations: 4 kB / 355.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001642/0.1187, allocations: 165.7 kB / 355.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1187, allocations: 3.984 kB / 355.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.401e-05/0.1188, allocations: 4 kB / 355.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.1188, allocations: 8.031 kB / 355.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.1188, allocations: 7.922 kB / 355.4 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1188, allocations: 0 / 355.4 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.1188, allocations: 7.953 kB / 355.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001632/0.119, allocations: 156.3 kB / 355.6 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.055e-05/0.1191, allocations: 93.12 kB / 355.7 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.1191, allocations: 3.938 kB / 355.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.416e-05/0.1192, allocations: 7.984 kB / 355.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.8e-05/0.1192, allocations: 3.953 kB / 355.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.135e-06/0.1192, allocations: 0 / 355.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.399e-05/0.1193, allocations: 103.3 kB / 355.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1193, allocations: 0 / 355.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002178/0.1195, allocations: 8 kB / 355.8 MB, free: 14.84 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 (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 0.0001206/0.1196, allocations: 107.2 kB / 355.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001278/0.1198, allocations: 19.98 kB / 355.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1198, allocations: 0 / 355.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.038e-05/0.1198, allocations: 15.94 kB / 356 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003232/0.1202, allocations: 12.02 kB / 356 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003644/0.1205, allocations: 173.8 kB / 356.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002302/0.1208, allocations: 0.6887 MB / 356.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.939e-05/0.1208, allocations: 4.25 kB / 356.8 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.398e-05/0.1209, allocations: 15.38 kB / 356.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1209, allocations: 0 / 356.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of Templates: time 0.002334/0.1232, allocations: 409.1 kB / 357.2 MB, free: 13.35 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches