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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 101.1 kB / 16.31 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 191.1 kB / 17.24 MB, free: 5.922 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.631/1.631, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07485/0.07485, allocations: 12.59 MB / 283.1 MB, free: 15.48 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.002142/0.002143, allocations: 87.88 kB / 343.5 MB, free: 2.945 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3352/0.3373, allocations: 49.38 MB / 392.9 MB, free: 49.2 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.004166/0.3416, allocations: 1.545 MB / 394.4 MB, free: 48.14 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006108/0.3422, allocations: 135.7 kB / 394.6 MB, free: 48.05 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001351/0.3424, allocations: 5.094 kB / 394.6 MB, free: 48.05 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.86e-05/0.3425, allocations: 5.062 kB / 394.6 MB, free: 48.05 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002238/0.3427, allocations: 12.09 kB / 394.6 MB, free: 48.04 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003827/0.3431, allocations: 32.03 kB / 394.6 MB, free: 48.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001645/0.3433, allocations: 41.91 kB / 394.6 MB, free: 48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001846/0.3435, allocations: 13.75 kB / 394.7 MB, free: 48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.061e-05/0.3435, allocations: 10.34 kB / 394.7 MB, free: 47.99 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.706e-05/0.3436, allocations: 13.64 kB / 394.7 MB, free: 47.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.914e-05/0.3437, allocations: 2.219 kB / 394.7 MB, free: 47.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.281e-05/0.3437, allocations: 3.406 kB / 394.7 MB, free: 47.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.977e-05/0.3438, allocations: 13.53 kB / 394.7 MB, free: 47.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.003e-05/0.3439, allocations: 30 kB / 394.7 MB, free: 47.95 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001958/0.3441, allocations: 45.45 kB / 394.8 MB, free: 47.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.3441, allocations: 0 / 394.8 MB, free: 47.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.841e-06/0.3441, allocations: 0.6562 kB / 394.8 MB, free: 47.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.3441, allocations: 0 / 394.8 MB, free: 47.93 MB / 318.1 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.0006489/0.3448, allocations: 371.2 kB / 395.1 MB, free: 47.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.528e-05/0.3448, allocations: 11.84 kB / 395.2 MB, free: 47.55 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.594e-05/0.3449, allocations: 7.5 kB / 395.2 MB, free: 47.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002503/0.3452, allocations: 189 kB / 395.3 MB, free: 47.33 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.3452, allocations: 10.69 kB / 395.4 MB, free: 47.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.108e-05/0.3452, allocations: 2.797 kB / 395.4 MB, free: 47.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004106/0.3456, allocations: 114.2 kB / 395.5 MB, free: 47.24 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.3456, allocations: 1.25 kB / 395.5 MB, free: 47.24 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.3457, allocations: 11.88 kB / 395.5 MB, free: 47.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.3457, allocations: 5.031 kB / 395.5 MB, free: 47.22 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001014/0.3458, allocations: 18.84 kB / 395.5 MB, free: 47.22 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004561/0.3463, allocations: 256.4 kB / 395.8 MB, free: 46.94 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002774/0.3466, allocations: 147.4 kB / 395.9 MB, free: 46.78 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.934e-05/0.3467, allocations: 31.42 kB / 395.9 MB, free: 46.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.3467, allocations: 2.078 kB / 395.9 MB, free: 46.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.3467, allocations: 32.27 kB / 396 MB, free: 46.71 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 9.92e-07/0.3467, allocations: 0 / 396 MB, free: 46.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003452/0.3471, allocations: 81.58 kB / 396 MB, free: 46.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.284e-05/0.3472, allocations: 86.77 kB / 396.1 MB, free: 46.56 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001738/0.3473, allocations: 135.4 kB / 396.3 MB, free: 46.45 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.202e-05/0.3474, allocations: 25.7 kB / 396.3 MB, free: 46.42 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.539e-05/0.3474, allocations: 86.62 kB / 396.4 MB, free: 46.33 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.055e-05/0.3475, allocations: 2.109 kB / 396.4 MB, free: 46.33 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.631e-05/0.3475, allocations: 22.09 kB / 396.4 MB, free: 46.31 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.3477, allocations: 319.2 kB / 396.7 MB, free: 45.99 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.27e-05/0.3477, allocations: 10.67 kB / 396.7 MB, free: 45.99 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.719e-05/0.3478, allocations: 30.03 kB / 396.7 MB, free: 45.96 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.594e-05/0.3479, allocations: 47.12 kB / 396.8 MB, free: 45.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3479, allocations: 1.594 kB / 396.8 MB, free: 45.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001566/0.3481, allocations: 69.05 kB / 396.9 MB, free: 45.87 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.3481, allocations: 6.078 kB / 396.9 MB, free: 45.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3481, allocations: 1.25 kB / 396.9 MB, free: 45.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.229e-05/0.3481, allocations: 1.188 kB / 396.9 MB, free: 45.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.498e-05/0.3482, allocations: 12.36 kB / 396.9 MB, free: 45.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.3483, allocations: 6.344 kB / 396.9 MB, free: 45.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.756e-05/0.3483, allocations: 3.016 kB / 396.9 MB, free: 45.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.3483, allocations: 2.531 kB / 396.9 MB, free: 45.86 MB / 318.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001138/0.3485, allocations: 126.1 kB / 397 MB, free: 45.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.583e-05/0.3485, allocations: 47.27 kB / 397.1 MB, free: 45.7 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.816e-05/0.3486, allocations: 12.09 kB / 397.1 MB, free: 45.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3486, allocations: 1.031 kB / 397.1 MB, free: 45.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.3486, allocations: 1.094 kB / 397.1 MB, free: 45.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.3486, allocations: 5.812 kB / 397.1 MB, free: 45.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001765/0.3488, allocations: 170.5 kB / 397.2 MB, free: 45.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3488, allocations: 0 / 397.2 MB, free: 45.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.077e-05/0.3489, allocations: 13.25 kB / 397.3 MB, free: 45.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.3489, allocations: 1 kB / 397.3 MB, free: 45.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.3489, allocations: 1.609 kB / 397.3 MB, free: 45.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3489, allocations: 5.062 kB / 397.3 MB, free: 45.47 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3489, allocations: 0.8906 kB / 397.3 MB, free: 45.47 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000198/0.3491, allocations: 174 kB / 397.4 MB, free: 45.31 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.088e-05/0.3492, allocations: 92.3 kB / 397.5 MB, free: 45.21 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.3492, allocations: 5.625 kB / 397.5 MB, free: 45.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.609e-05/0.3493, allocations: 3.469 kB / 397.5 MB, free: 45.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.3494, allocations: 1.797 kB / 397.5 MB, free: 45.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.3494, allocations: 3.969 kB / 397.5 MB, free: 45.21 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.126e-05/0.3494, allocations: 105.1 kB / 397.6 MB, free: 45.12 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3494, allocations: 0 / 397.6 MB, free: 45.12 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002435/0.3497, allocations: 5.688 kB / 397.7 MB, free: 45.12 MB / 318.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 (4): * Single equations (assignments): 4 * 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 0.0001057/0.3498, allocations: 99.58 kB / 397.8 MB, free: 45.03 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001605/0.35, allocations: 31.5 kB / 397.8 MB, free: 45.02 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.35, allocations: 0 / 397.8 MB, free: 45.02 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.369e-05/0.35, allocations: 8.953 kB / 397.8 MB, free: 45.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004678/0.3505, allocations: 26.89 kB / 397.8 MB, free: 45.01 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003641/0.3509, allocations: 151.1 kB / 398 MB, free: 44.87 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/0.3511, allocations: 0.6935 MB / 398.7 MB, free: 44.17 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.962e-05/0.3512, allocations: 2.062 kB / 398.7 MB, free: 44.17 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.768e-05/0.3512, allocations: 14 kB / 398.7 MB, free: 44.16 MB / 318.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3512, allocations: 0 / 398.7 MB, free: 44.16 MB / 318.1 MB Notification: Performance of Templates: time 0.0038/0.355, allocations: 0.4931 MB / 399.2 MB, free: 43.95 MB / 318.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches