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.001126/0.001126, allocations: 174.2 kB / 16.8 MB, free: 5.008 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.269/1.269, allocations: 205.4 MB / 223 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007393/0.0007391, allocations: 96.92 kB / 271.3 MB, free: 8.238 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.07567/0.07567, allocations: 12.59 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003505, allocations: 8 kB / 393.3 MB, free: 65.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07774/0.07811, allocations: 50.38 MB / 443.7 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3): time 0.001649/0.07981, allocations: 1.397 MB / 445.1 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003785/0.0802, allocations: 159.5 kB / 445.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.581e-05/0.08031, allocations: 0 / 445.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.002e-05/0.08036, allocations: 3.938 kB / 445.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001599/0.08053, allocations: 7.984 kB / 445.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002588/0.0808, allocations: 43.91 kB / 445.3 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.675e-05/0.08089, allocations: 51.84 kB / 445.4 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.08101, allocations: 24 kB / 445.4 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.865e-05/0.08107, allocations: 27.84 kB / 445.4 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.784e-05/0.08112, allocations: 15.86 kB / 445.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.748e-05/0.08115, allocations: 4 kB / 445.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.183e-05/0.08117, allocations: 0 / 445.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.871e-05/0.08122, allocations: 11.94 kB / 445.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.627e-05/0.08126, allocations: 61.44 kB / 445.5 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.204e-05/0.08134, allocations: 44.2 kB / 445.5 MB, free: 13.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.08135, allocations: 0 / 445.5 MB, free: 13.56 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.08136, allocations: 0 / 445.5 MB, free: 13.56 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.456e-06/0.08137, allocations: 0 / 445.5 MB, free: 13.56 MB / 298.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.0003791/0.08175, allocations: 375.2 kB / 445.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.08179, allocations: 8.031 kB / 445.9 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.153e-05/0.08183, allocations: 8.844 kB / 445.9 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/0.08198, allocations: 205 kB / 446.1 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.082, allocations: 4.375 kB / 446.1 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.08202, allocations: 4.375 kB / 446.1 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002837/0.08231, allocations: 175.6 kB / 446.3 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.08233, allocations: 192 / 446.3 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.08235, allocations: 7.938 kB / 446.3 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.08236, allocations: 0 / 446.3 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.976e-05/0.08246, allocations: 39.97 kB / 446.3 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002968/0.08277, allocations: 377.7 kB / 446.7 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001977/0.08297, allocations: 115.9 kB / 446.8 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.463e-05/0.08307, allocations: 58.56 kB / 446.9 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.0831, allocations: 3.938 kB / 446.9 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.524e-05/0.08312, allocations: 42.5 kB / 446.9 MB, free: 11.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.704e-06/0.08313, allocations: 3.984 kB / 446.9 MB, free: 11.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002942/0.08343, allocations: 129.5 kB / 447.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.08347, allocations: 107 kB / 447.2 MB, free: 11.69 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.22e-05/0.08356, allocations: 139.7 kB / 447.3 MB, free: 11.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.809e-06/0.08358, allocations: 29.7 kB / 447.3 MB, free: 11.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.789e-05/0.08362, allocations: 100 kB / 447.4 MB, free: 11.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.779e-05/0.08365, allocations: 7.984 kB / 447.4 MB, free: 11.4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-06/0.08366, allocations: 4.25 kB / 447.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.823e-05/0.08371, allocations: 318.8 kB / 447.8 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.543e-05/0.08376, allocations: 19.92 kB / 447.8 MB, free: 11.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.466e-05/0.08382, allocations: 75.72 kB / 447.8 MB, free: 10.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.907e-05/0.08393, allocations: 99.53 kB / 447.9 MB, free: 10.83 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.08394, allocations: 0 / 447.9 MB, free: 10.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001502/0.08409, allocations: 117.4 kB / 448.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.08411, allocations: 4 kB / 448.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.08413, allocations: 4 kB / 448.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.08414, allocations: 3.938 kB / 448.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.616e-05/0.08421, allocations: 31.92 kB / 448.1 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.08423, allocations: 0 / 448.1 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.547e-05/0.08428, allocations: 11.84 kB / 448.1 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.664e-06/0.08429, allocations: 8 kB / 448.1 MB, free: 10.64 MB / 298.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.001e-05/0.08436, allocations: 126 kB / 448.2 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.08447, allocations: 77.53 kB / 448.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.129e-05/0.08451, allocations: 16.7 kB / 448.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.08451, allocations: 0 / 448.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.08452, allocations: 4 kB / 448.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.08453, allocations: 0 / 448.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001698/0.08471, allocations: 181.6 kB / 448.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.08472, allocations: 0 / 448.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.072e-05/0.08479, allocations: 19.98 kB / 448.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.0848, allocations: 8 kB / 448.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.08481, allocations: 0 / 448.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.08482, allocations: 0 / 448.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.08483, allocations: 4.188 kB / 448.5 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002924/0.08512, allocations: 324.2 kB / 448.9 MB, free: 9.812 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.131e-05/0.08518, allocations: 104.9 kB / 449 MB, free: 9.691 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.409e-05/0.0852, allocations: 3.938 kB / 449 MB, free: 9.688 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.12e-05/0.08529, allocations: 8 kB / 449 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.774e-05/0.08533, allocations: 0 / 449 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.08534, allocations: 7.984 kB / 449 MB, free: 9.672 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.714e-05/0.08539, allocations: 105.9 kB / 449.1 MB, free: 9.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.0854, allocations: 4 kB / 449.1 MB, free: 9.566 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002482/0.08565, allocations: 11.91 kB / 449.1 MB, free: 9.555 MB / 298.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.866e-05/0.08573, allocations: 103.2 kB / 449.2 MB, free: 9.441 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001512/0.08589, allocations: 55.91 kB / 449.3 MB, free: 9.387 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.08591, allocations: 4.562 kB / 449.3 MB, free: 9.383 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.757e-05/0.08595, allocations: 23.92 kB / 449.3 MB, free: 9.359 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004427/0.0864, allocations: 32.02 kB / 449.3 MB, free: 9.328 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003348/0.08675, allocations: 278.5 kB / 449.6 MB, free: 9.02 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001438/0.0869, allocations: 0.7004 MB / 450.3 MB, free: 8.293 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.308e-05/0.08693, allocations: 11.44 kB / 450.3 MB, free: 8.281 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.08694, allocations: 4 kB / 450.3 MB, free: 8.277 MB / 298.7 MB Notification: Performance of Templates: time 0.001882/0.08883, allocations: 0.9033 MB / 451.2 MB, free: 7.375 MB / 298.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/jenkins1/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