Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.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.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|feedback.y|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|feedback.y|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009394/0.0009394, allocations: 180.9 kB / 8.049 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.469/1.469, 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.0008206/0.0008205, allocations: 84.03 kB / 261.8 MB, free: 1.621 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.06417/0.06417, allocations: 12.59 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.288e-05/1.288e-05, allocations: 0 / 378.9 MB, free: 6.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2089, allocations: 50.39 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09107/0.3, allocations: 77.44 MB / 0.4949 GB, free: 4.801 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002033/0.3003, allocations: 75.95 kB / 0.4949 GB, free: 4.727 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003275/0.3036, allocations: 1.382 MB / 0.4963 GB, free: 3.348 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3036, allocations: 3.938 kB / 0.4963 GB, free: 3.344 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.3036, allocations: 0 / 0.4963 GB, free: 3.344 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003658/0.304, allocations: 362.4 kB / 0.4966 GB, free: 2.945 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.304, allocations: 8.031 kB / 0.4967 GB, free: 2.938 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.614e-05/0.3041, allocations: 11.81 kB / 0.4967 GB, free: 2.926 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001857/0.3043, allocations: 194.8 kB / 0.4969 GB, free: 2.695 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.739e-06/0.3043, allocations: 0 / 0.4969 GB, free: 2.695 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.248e-05/0.3043, allocations: 7.953 kB / 0.4969 GB, free: 2.688 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.998e-05/0.3044, allocations: 35.92 kB / 0.4969 GB, free: 2.652 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002452/0.3047, allocations: 133.9 kB / 0.497 GB, free: 2.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.3047, allocations: 4 kB / 0.497 GB, free: 2.496 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.3047, allocations: 3.984 kB / 0.497 GB, free: 2.492 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3047, allocations: 0 / 0.497 GB, free: 2.492 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003751/0.3051, allocations: 350.3 kB / 0.4974 GB, free: 2.105 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001771/0.3053, allocations: 103.9 kB / 0.4975 GB, free: 1.977 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.105e-05/0.3053, allocations: 42.64 kB / 0.4975 GB, free: 1.926 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.3054, allocations: 8.031 kB / 0.4975 GB, free: 1.918 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.3054, allocations: 30.56 kB / 0.4975 GB, free: 1.879 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 2.464e-06/0.3054, allocations: 0 / 0.4975 GB, free: 1.879 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.000195/0.3056, allocations: 89.66 kB / 0.4976 GB, free: 1.785 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.113e-05/0.3057, allocations: 114.8 kB / 0.4977 GB, free: 1.648 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.3058, allocations: 121.2 kB / 0.4978 GB, free: 1.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.3058, allocations: 25.7 kB / 0.4979 GB, free: 1.488 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.973e-05/0.3059, allocations: 88.12 kB / 0.498 GB, free: 1.398 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.486e-05/0.3059, allocations: 11.84 kB / 0.498 GB, free: 1.387 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-06/0.3059, allocations: 0 / 0.498 GB, free: 1.387 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.211e-05/0.306, allocations: 322.8 kB / 0.4983 GB, free: 1.062 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.107e-05/0.306, allocations: 12 kB / 0.4983 GB, free: 1.051 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.319e-05/0.3061, allocations: 59.73 kB / 0.4983 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.43e-05/0.3061, allocations: 23.92 kB / 0.4984 GB, free: 0.9414 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.3061, allocations: 3.953 kB / 0.4984 GB, free: 0.9375 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001141/0.3062, allocations: 85.47 kB / 0.4985 GB, free: 0.8477 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.3063, allocations: 4 kB / 0.4985 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.3063, allocations: 4.281 kB / 0.4985 GB, free: 0.8398 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.3063, allocations: 4 kB / 0.4985 GB, free: 0.8359 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.271e-05/0.3064, allocations: 23.92 kB / 0.4985 GB, free: 0.8125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.3064, allocations: 4.188 kB / 0.4985 GB, free: 0.8086 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.664e-05/0.3064, allocations: 4 kB / 0.4985 GB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.3064, allocations: 11.94 kB / 0.4985 GB, free: 0.793 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.184e-05/0.3065, allocations: 101 kB / 0.4986 GB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.3066, allocations: 73.48 kB / 0.4987 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.821e-05/0.3067, allocations: 20.61 kB / 0.4987 GB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.3067, allocations: 0 / 0.4987 GB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3067, allocations: 4 kB / 0.4987 GB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.3067, allocations: 0 / 0.4987 GB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00018/0.3069, allocations: 162 kB / 0.4989 GB, free: 396 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3069, allocations: 0 / 0.4989 GB, free: 396 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.609e-05/0.307, allocations: 27.98 kB / 0.4989 GB, free: 368 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.307, allocations: 3.953 kB / 0.4989 GB, free: 364 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.307, allocations: 4 kB / 0.4989 GB, free: 360 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.307, allocations: 0 / 0.4989 GB, free: 360 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.307, allocations: 0 / 0.4989 GB, free: 360 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003082/0.3073, allocations: 315.7 kB / 0.4992 GB, free: 8 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.195e-05/0.3074, allocations: 93 kB / 0.4993 GB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.952e-05/0.3074, allocations: 11.98 kB / 0.4993 GB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.813e-05/0.3075, allocations: 3.953 kB / 0.4993 GB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.321e-05/0.3076, allocations: 7.984 kB / 0.4993 GB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.3076, allocations: 0 / 0.4993 GB, free: 15.88 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.626e-05/0.3077, allocations: 104.7 kB / 0.4994 GB, free: 15.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3077, allocations: 0 / 0.4994 GB, free: 15.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000247/0.3079, allocations: 8 kB / 0.4994 GB, free: 15.77 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 (10): * Single equations (assignments): 10 * 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 8.092e-05/0.308, allocations: 95.19 kB / 0.4995 GB, free: 15.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000103/0.3081, allocations: 59.84 kB / 0.4996 GB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3081, allocations: 0 / 0.4996 GB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.441e-05/0.3081, allocations: 4 kB / 0.4996 GB, free: 15.6 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/0.3084, allocations: 35.34 kB / 0.4996 GB, free: 15.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000277/0.3087, allocations: 122.7 kB / 0.4997 GB, free: 15.42 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.309, allocations: 0.7158 MB / 0.5004 GB, free: 14.68 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.91e-05/0.309, allocations: 8.609 kB / 0.5004 GB, free: 14.67 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.87e-05/0.3091, allocations: 15.44 kB / 0.5004 GB, free: 14.66 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3091, allocations: 0 / 0.5004 GB, free: 14.66 MB / 362.7 MB Notification: Performance of Templates: time 0.002444/0.3115, allocations: 0.5783 MB / 0.501 GB, free: 14.08 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches