Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009765/0.0009763, allocations: 181.1 kB / 8.051 MB, free: 1.023 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.511/1.511, allocations: 205.3 MB / 213.8 MB, free: 1.68 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.0008142/0.0008141, allocations: 82.58 kB / 261.8 MB, free: 1.625 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.07075/0.07075, allocations: 12.61 MB / 322.4 MB, free: 15.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.458e-05/1.459e-05, allocations: 4 kB / 378.9 MB, free: 6.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2336, allocations: 50.37 MB / 429.3 MB, free: 18.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09996/0.3336, allocations: 77.13 MB / 0.4946 GB, free: 5.125 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/0.3339, allocations: 75.95 kB / 0.4946 GB, free: 5.051 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002758/0.3367, allocations: 1.123 MB / 0.4957 GB, free: 3.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3367, allocations: 3.938 kB / 0.4957 GB, free: 3.926 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.437e-06/0.3367, allocations: 0 / 0.4957 GB, free: 3.926 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003995/0.3371, allocations: 338.5 kB / 0.4961 GB, free: 3.551 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.3372, allocations: 12.03 kB / 0.4961 GB, free: 3.539 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.528e-05/0.3372, allocations: 7.906 kB / 0.4961 GB, free: 3.531 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002203/0.3375, allocations: 186.8 kB / 0.4963 GB, free: 3.309 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.3375, allocations: 4 kB / 0.4963 GB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.21e-05/0.3375, allocations: 11.89 kB / 0.4963 GB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.396e-05/0.3376, allocations: 15.98 kB / 0.4963 GB, free: 3.277 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002045/0.3378, allocations: 97.05 kB / 0.4964 GB, free: 3.164 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.3378, allocations: 0 / 0.4964 GB, free: 3.164 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.3378, allocations: 0 / 0.4964 GB, free: 3.164 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.3378, allocations: 4 kB / 0.4964 GB, free: 3.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003405/0.3382, allocations: 246.3 kB / 0.4966 GB, free: 2.879 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001863/0.3384, allocations: 134.2 kB / 0.4967 GB, free: 2.711 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.083e-05/0.3384, allocations: 25.78 kB / 0.4968 GB, free: 2.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.3385, allocations: 0 / 0.4968 GB, free: 2.68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.3385, allocations: 34.56 kB / 0.4968 GB, free: 2.637 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 8.11e-07/0.3385, allocations: 0 / 0.4968 GB, free: 2.637 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001609/0.3387, allocations: 53.62 kB / 0.4969 GB, free: 2.578 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.088e-05/0.3387, allocations: 81.11 kB / 0.4969 GB, free: 2.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.3389, allocations: 118.7 kB / 0.497 GB, free: 2.355 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.3389, allocations: 25.7 kB / 0.4971 GB, free: 2.324 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.426e-05/0.3389, allocations: 88.12 kB / 0.4972 GB, free: 2.234 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.503e-05/0.3389, allocations: 7.906 kB / 0.4972 GB, free: 2.227 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.817e-06/0.339, allocations: 0 / 0.4972 GB, free: 2.227 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.3391, allocations: 318.8 kB / 0.4975 GB, free: 1.906 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.325e-05/0.3391, allocations: 4 kB / 0.4975 GB, free: 1.902 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.396e-05/0.3392, allocations: 35.42 kB / 0.4975 GB, free: 1.855 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.686e-05/0.3392, allocations: 7.938 kB / 0.4975 GB, free: 1.848 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3392, allocations: 0 / 0.4975 GB, free: 1.848 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.247e-05/0.3393, allocations: 53.59 kB / 0.4976 GB, free: 1.789 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.3393, allocations: 7.984 kB / 0.4976 GB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.3393, allocations: 0 / 0.4976 GB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3393, allocations: 8.125 kB / 0.4976 GB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.241e-05/0.3394, allocations: 8.141 kB / 0.4976 GB, free: 1.766 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.3394, allocations: 0 / 0.4976 GB, free: 1.766 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.326e-05/0.3395, allocations: 4 kB / 0.4976 GB, free: 1.762 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.762e-06/0.3395, allocations: 0 / 0.4976 GB, free: 1.762 MB / 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 7.545e-05/0.3396, allocations: 108.9 kB / 0.4977 GB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.029e-05/0.3396, allocations: 57.47 kB / 0.4977 GB, free: 1.586 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.017e-05/0.3397, allocations: 8.344 kB / 0.4978 GB, free: 1.574 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.3397, allocations: 7.984 kB / 0.4978 GB, free: 1.566 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3397, allocations: 0 / 0.4978 GB, free: 1.566 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.3397, allocations: 4 kB / 0.4978 GB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001409/0.3398, allocations: 142.2 kB / 0.4979 GB, free: 1.387 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3398, allocations: 0 / 0.4979 GB, free: 1.387 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.438e-05/0.3399, allocations: 11.98 kB / 0.4979 GB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.3399, allocations: 0 / 0.4979 GB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.3399, allocations: 7.953 kB / 0.4979 GB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3399, allocations: 0 / 0.4979 GB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.3399, allocations: 4 kB / 0.4979 GB, free: 1.363 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001269/0.3401, allocations: 170 kB / 0.4981 GB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.754e-05/0.3401, allocations: 92.94 kB / 0.4982 GB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.606e-05/0.3402, allocations: 3.953 kB / 0.4982 GB, free: 1.059 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.997e-05/0.3402, allocations: 4 kB / 0.4982 GB, free: 1.055 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.961e-05/0.3403, allocations: 7.984 kB / 0.4982 GB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-06/0.3403, allocations: 4 kB / 0.4982 GB, free: 1.043 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.904e-05/0.3403, allocations: 101 kB / 0.4983 GB, free: 0.9453 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3404, allocations: 0 / 0.4983 GB, free: 0.9453 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002159/0.3406, allocations: 4 kB / 0.4983 GB, free: 0.9414 MB / 346.7 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 () * 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 9.325e-05/0.3407, allocations: 91.25 kB / 0.4984 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.197e-05/0.3407, allocations: 19.94 kB / 0.4984 GB, free: 0.8242 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3408, allocations: 0 / 0.4984 GB, free: 0.8242 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.115e-05/0.3408, allocations: 4 kB / 0.4984 GB, free: 0.8203 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.341, allocations: 31.64 kB / 0.4984 GB, free: 0.793 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002258/0.3413, allocations: 80.92 kB / 0.4985 GB, free: 0.6836 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.3416, allocations: 0.7041 MB / 0.4992 GB, free: 15.95 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.653e-05/0.3416, allocations: 0 / 0.4992 GB, free: 15.95 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.484e-05/0.3417, allocations: 19.31 kB / 0.4992 GB, free: 15.93 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3417, allocations: 0 / 0.4992 GB, free: 15.93 MB / 362.7 MB Notification: Performance of Templates: time 0.002143/0.3438, allocations: 415.2 kB / 0.4996 GB, free: 15.53 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches