Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001027/0.001027, allocations: 177.1 kB / 8.048 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.473/1.473, allocations: 205.3 MB / 213.8 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008586/0.0008585, allocations: 94.28 kB / 261.8 MB, free: 1.613 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07464/0.07464, allocations: 12.6 MB / 322.3 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.953e-05/1.956e-05, allocations: 3.984 kB / 378.9 MB, free: 6.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2225, allocations: 50.37 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09311/0.3156, allocations: 77.6 MB / 0.495 GB, free: 4.637 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002107/0.3159, allocations: 75.95 kB / 0.4951 GB, free: 4.562 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005129/0.321, allocations: 1.973 MB / 0.497 GB, free: 2.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.321, allocations: 0 / 0.497 GB, free: 2.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.3211, allocations: 4 kB / 0.497 GB, free: 2.586 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003223/0.3214, allocations: 350.4 kB / 0.4974 GB, free: 2.199 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.3214, allocations: 8.031 kB / 0.4974 GB, free: 2.191 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.025e-05/0.3215, allocations: 7.906 kB / 0.4974 GB, free: 2.184 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000199/0.3217, allocations: 199.8 kB / 0.4976 GB, free: 1.949 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.3217, allocations: 0 / 0.4976 GB, free: 1.949 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.576e-05/0.3217, allocations: 11.94 kB / 0.4976 GB, free: 1.938 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.396e-05/0.3218, allocations: 16 kB / 0.4976 GB, free: 1.922 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001922/0.322, allocations: 117.8 kB / 0.4977 GB, free: 1.785 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.322, allocations: 0 / 0.4977 GB, free: 1.785 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.322, allocations: 3.938 kB / 0.4977 GB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.322, allocations: 0 / 0.4977 GB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003059/0.3224, allocations: 259.2 kB / 0.498 GB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.538e-05/0.3225, allocations: 67.72 kB / 0.498 GB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.604e-05/0.3225, allocations: 26.7 kB / 0.4981 GB, free: 1.355 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.3225, allocations: 0 / 0.4981 GB, free: 1.355 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.3226, allocations: 42.48 kB / 0.4981 GB, free: 1.305 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.3226, allocations: 0 / 0.4981 GB, free: 1.305 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001702/0.3227, allocations: 53.61 kB / 0.4981 GB, free: 1.246 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.723e-05/0.3228, allocations: 114.7 kB / 0.4983 GB, free: 1.109 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.3229, allocations: 127.2 kB / 0.4984 GB, free: 0.9805 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.323, allocations: 25.7 kB / 0.4984 GB, free: 0.9492 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.679e-05/0.323, allocations: 84.14 kB / 0.4985 GB, free: 0.8633 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.323, allocations: 11.98 kB / 0.4985 GB, free: 0.8516 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-06/0.323, allocations: 0 / 0.4985 GB, free: 0.8516 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.3231, allocations: 320.1 kB / 0.4988 GB, free: 0.5312 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.506e-05/0.3232, allocations: 8 kB / 0.4988 GB, free: 0.5234 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.187e-05/0.3232, allocations: 23.44 kB / 0.4988 GB, free: 500 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.341e-05/0.3232, allocations: 11.98 kB / 0.4988 GB, free: 488 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3233, allocations: 3.938 kB / 0.4988 GB, free: 484 kB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.576e-05/0.3233, allocations: 61.53 kB / 0.4989 GB, free: 416 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.3234, allocations: 8 kB / 0.4989 GB, free: 408 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.3234, allocations: 0 / 0.4989 GB, free: 408 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.3234, allocations: 0 / 0.4989 GB, free: 408 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.78e-05/0.3235, allocations: 11.94 kB / 0.4989 GB, free: 396 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.499e-06/0.3235, allocations: 4 kB / 0.4989 GB, free: 392 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.266e-05/0.3235, allocations: 7.984 kB / 0.4989 GB, free: 384 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.3236, allocations: 0 / 0.4989 GB, free: 384 kB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.994e-05/0.3236, allocations: 113.1 kB / 0.499 GB, free: 264 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.061e-05/0.3237, allocations: 49.55 kB / 0.4991 GB, free: 208 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.137e-05/0.3237, allocations: 11.95 kB / 0.4991 GB, free: 196 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.3237, allocations: 0 / 0.4991 GB, free: 196 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.3237, allocations: 0 / 0.4991 GB, free: 196 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.3238, allocations: 0 / 0.4991 GB, free: 196 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001419/0.3239, allocations: 154.2 kB / 0.4992 GB, free: 4 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3239, allocations: 0 / 0.4992 GB, free: 4 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.32e-05/0.324, allocations: 16.05 kB / 0.4993 GB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.324, allocations: 0 / 0.4993 GB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.324, allocations: 4 kB / 0.4993 GB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.324, allocations: 0 / 0.4993 GB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.324, allocations: 0 / 0.4993 GB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000135/0.3242, allocations: 196.5 kB / 0.4994 GB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.882e-05/0.3242, allocations: 100.9 kB / 0.4995 GB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.504e-05/0.3243, allocations: 0 / 0.4995 GB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.674e-05/0.3243, allocations: 7.984 kB / 0.4996 GB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.214e-05/0.3244, allocations: 4 kB / 0.4996 GB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-06/0.3244, allocations: 4 kB / 0.4996 GB, free: 15.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.305e-05/0.3244, allocations: 104 kB / 0.4997 GB, free: 15.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3245, allocations: 0 / 0.4997 GB, free: 15.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002082/0.3247, allocations: 7.953 kB / 0.4997 GB, free: 15.52 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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 (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.0001008/0.3248, allocations: 99.25 kB / 0.4998 GB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.992e-05/0.3249, allocations: 23.92 kB / 0.4998 GB, free: 15.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3249, allocations: 0 / 0.4998 GB, free: 15.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.254e-05/0.3249, allocations: 0 / 0.4998 GB, free: 15.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.3251, allocations: 19.41 kB / 0.4998 GB, free: 15.37 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002504/0.3254, allocations: 118.2 kB / 0.4999 GB, free: 15.22 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.3257, allocations: 0.7001 MB / 0.5006 GB, free: 14.5 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.616e-05/0.3257, allocations: 4.188 kB / 0.5006 GB, free: 14.49 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.598e-05/0.3258, allocations: 11.44 kB / 0.5006 GB, free: 14.48 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3258, allocations: 0 / 0.5006 GB, free: 14.48 MB / 362.7 MB Notification: Performance of Templates: time 0.00227/0.328, allocations: 499.9 kB / 0.5011 GB, free: 13.99 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches