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.001399/0.001399, allocations: 104.1 kB / 15.74 MB, free: 428 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001935/0.001935, allocations: 179.8 kB / 16.62 MB, free: 6.891 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.618/1.618, allocations: 205.4 MB / 222.8 MB, free: 5.668 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.08318/0.08318, allocations: 12.6 MB / 283.7 MB, free: 8.699 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.0007611/0.0007614, allocations: 20 kB / 344.5 MB, free: 21.28 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1018, allocations: 50.38 MB / 394.9 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.002215/0.1041, allocations: 1.249 MB / 396.1 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.1051, allocations: 480.1 kB / 396.6 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.1053, allocations: 7.938 kB / 396.6 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.661e-05/0.1054, allocations: 0 / 396.6 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.1055, allocations: 7.984 kB / 396.6 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003119/0.1058, allocations: 35.91 kB / 396.7 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.106, allocations: 23.97 kB / 396.7 MB, free: 1 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.1061, allocations: 23.86 kB / 396.7 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.132e-05/0.1061, allocations: 15.92 kB / 396.7 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.393e-05/0.1062, allocations: 19.86 kB / 396.7 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.763e-05/0.1062, allocations: 4 kB / 396.7 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.254e-05/0.1063, allocations: 0 / 396.7 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.681e-05/0.1063, allocations: 11.98 kB / 396.8 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.219e-05/0.1063, allocations: 33.64 kB / 396.8 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.072e-05/0.1064, allocations: 31.94 kB / 396.8 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.1064, allocations: 0 / 396.8 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.155e-06/0.1064, allocations: 0 / 396.8 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.1065, allocations: 0 / 396.8 MB, free: 0.8555 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.0004965/0.107, allocations: 367.3 kB / 397.2 MB, free: 460 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.107, allocations: 8.031 kB / 397.2 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.284e-05/0.107, allocations: 7.906 kB / 397.2 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002075/0.1072, allocations: 190.8 kB / 397.4 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.1073, allocations: 0 / 397.4 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.569e-05/0.1073, allocations: 4 kB / 397.4 MB, free: 208 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002413/0.1075, allocations: 89.11 kB / 397.5 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.1076, allocations: 3.938 kB / 397.5 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.1076, allocations: 0 / 397.5 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.1076, allocations: 11.92 kB / 397.5 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.3e-05/0.1077, allocations: 19.98 kB / 397.5 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003715/0.1081, allocations: 257.8 kB / 397.8 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.988e-05/0.1082, allocations: 49.14 kB / 397.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.1082, allocations: 0 / 397.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.1082, allocations: 34.62 kB / 397.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 8.61e-07/0.1082, allocations: 4 kB / 397.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.00026/0.1085, allocations: 77.52 kB / 397.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.1086, allocations: 77.11 kB / 398 MB, free: 15.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.1087, allocations: 137.1 kB / 398.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.1087, allocations: 29.89 kB / 398.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.495e-05/0.1088, allocations: 96.06 kB / 398.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.354e-05/0.1088, allocations: 4 kB / 398.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-06/0.1088, allocations: 0 / 398.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.109, allocations: 318.8 kB / 398.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.361e-05/0.109, allocations: 11.98 kB / 398.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.207e-05/0.1091, allocations: 21.72 kB / 398.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.085e-05/0.1091, allocations: 12.05 kB / 398.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1091, allocations: 4 kB / 398.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001149/0.1093, allocations: 61.53 kB / 398.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.1093, allocations: 4 kB / 398.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1093, allocations: 0 / 398.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.1093, allocations: 4.062 kB / 398.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.712e-05/0.1094, allocations: 15.92 kB / 398.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.1094, allocations: 0 / 398.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.688e-05/0.1095, allocations: 4 kB / 398.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.1095, allocations: 0 / 398.7 MB, free: 14.72 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 9.807e-05/0.1096, allocations: 129.5 kB / 398.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.411e-05/0.1096, allocations: 37.61 kB / 398.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.879e-05/0.1097, allocations: 7.906 kB / 398.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.1097, allocations: 8 kB / 398.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1097, allocations: 3.938 kB / 398.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.1097, allocations: 0 / 398.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001785/0.1099, allocations: 173.6 kB / 399.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1099, allocations: 0 / 399.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.063e-05/0.1099, allocations: 11.98 kB / 399.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.11, allocations: 3.938 kB / 399.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.11, allocations: 0 / 399.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.11, allocations: 0 / 399.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.11, allocations: 4 kB / 399.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00019/0.1102, allocations: 182 kB / 399.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.913e-05/0.1103, allocations: 85.09 kB / 399.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.1103, allocations: 4 kB / 399.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.321e-05/0.1103, allocations: 4.031 kB / 399.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.347e-05/0.1104, allocations: 7.938 kB / 399.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-06/0.1104, allocations: 0 / 399.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.666e-05/0.1105, allocations: 111.2 kB / 399.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1105, allocations: 0 / 399.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002127/0.1107, allocations: 8 kB / 399.5 MB, free: 13.85 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 9.41e-05/0.1108, allocations: 91.25 kB / 399.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001362/0.111, allocations: 23.98 kB / 399.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.111, allocations: 0 / 399.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.101e-05/0.111, allocations: 15.98 kB / 399.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.1113, allocations: 27.86 kB / 399.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003337/0.1117, allocations: 173.7 kB / 399.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002732/0.1119, allocations: 0.6926 MB / 400.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.698e-05/0.112, allocations: 3.984 kB / 400.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.083e-05/0.112, allocations: 11.44 kB / 400.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.112, allocations: 0 / 400.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of Templates: time 0.00227/0.1143, allocations: 417.2 kB / 400.9 MB, free: 12.34 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches