Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 111.7 kB / 17.06 MB, free: 6 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.001669/0.001669, allocations: 194.9 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008815/0.0008816, allocations: 47.94 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3729/0.3738, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003257/0.3771, allocations: 1.869 MB / 402.6 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007587/0.3779, allocations: 458.8 kB / 403 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.483e-05/0.378, allocations: 3.938 kB / 403 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000128/0.3782, allocations: 15.8 kB / 403 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.13e-05/0.3782, allocations: 19.8 kB / 403.1 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001656/0.3784, allocations: 31.94 kB / 403.1 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001833/0.3786, allocations: 107.6 kB / 403.2 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001633/0.3788, allocations: 41.38 kB / 403.2 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.579e-05/0.3788, allocations: 39.86 kB / 403.3 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.142e-05/0.3789, allocations: 47.77 kB / 403.3 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.367e-05/0.379, allocations: 8 kB / 403.3 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.893e-05/0.379, allocations: 8 kB / 403.3 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.089e-05/0.379, allocations: 19.92 kB / 403.4 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.041e-05/0.3791, allocations: 51.67 kB / 403.4 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001654/0.3793, allocations: 103.5 kB / 403.5 MB, free: 6.051 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3793, allocations: 0 / 403.5 MB, free: 6.051 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3793, allocations: 4 kB / 403.5 MB, free: 6.047 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.3793, allocations: 0 / 403.5 MB, free: 6.047 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0005753/0.3799, allocations: 404.6 kB / 403.9 MB, free: 5.605 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.3799, allocations: 8.031 kB / 403.9 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.805e-05/0.38, allocations: 12.84 kB / 403.9 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002426/0.3802, allocations: 192.1 kB / 404.1 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.3802, allocations: 8.562 kB / 404.1 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.62e-05/0.3803, allocations: 16.38 kB / 404.1 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003056/0.3806, allocations: 117.2 kB / 404.3 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.3806, allocations: 4 kB / 404.3 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.3806, allocations: 0 / 404.3 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.3806, allocations: 0 / 404.3 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002301/0.3809, allocations: 79.83 kB / 404.3 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00068/0.3816, allocations: 0.5246 MB / 404.9 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002056/0.3818, allocations: 74.61 kB / 404.9 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.3819, allocations: 44.83 kB / 405 MB, free: 4.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.39e-05/0.3819, allocations: 3.938 kB / 405 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.9e-05/0.382, allocations: 34.56 kB / 405 MB, free: 4.363 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.382, allocations: 0 / 405 MB, free: 4.363 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004239/0.3824, allocations: 121.7 kB / 405.1 MB, free: 4.238 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.603e-05/0.3824, allocations: 55.41 kB / 405.2 MB, free: 4.172 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.744e-05/0.3826, allocations: 125.8 kB / 405.3 MB, free: 4.039 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/0.3826, allocations: 29.7 kB / 405.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.38e-05/0.3827, allocations: 115.8 kB / 405.5 MB, free: 3.887 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.821e-05/0.3827, allocations: 31.55 kB / 405.5 MB, free: 3.855 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.049e-05/0.3827, allocations: 29.7 kB / 405.5 MB, free: 3.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.3829, allocations: 318.8 kB / 405.8 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.383, allocations: 35.97 kB / 405.9 MB, free: 3.465 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.3831, allocations: 76.14 kB / 405.9 MB, free: 3.375 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002222/0.3834, allocations: 104.2 kB / 406 MB, free: 3.258 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3834, allocations: 0 / 406 MB, free: 3.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002936/0.3837, allocations: 133.4 kB / 406.2 MB, free: 3.121 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.3837, allocations: 7.984 kB / 406.2 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.3837, allocations: 4 kB / 406.2 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.3837, allocations: 0 / 406.2 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001717/0.3839, allocations: 36.05 kB / 406.2 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.3839, allocations: 4 kB / 406.2 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.276e-05/0.384, allocations: 7.984 kB / 406.2 MB, free: 3.062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.868e-06/0.384, allocations: 8 kB / 406.2 MB, free: 3.055 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (13): * Single equations (assignments): 13 * 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 8.555e-05/0.3841, allocations: 121.7 kB / 406.3 MB, free: 2.926 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.055e-05/0.3841, allocations: 7.906 kB / 406.4 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.709e-05/0.3842, allocations: 16.36 kB / 406.4 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.3842, allocations: 0 / 406.4 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3842, allocations: 4 kB / 406.4 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.748e-06/0.3842, allocations: 3.984 kB / 406.4 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002077/0.3844, allocations: 205.5 kB / 406.6 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3844, allocations: 0 / 406.6 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/0.3846, allocations: 27.92 kB / 406.6 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.3846, allocations: 0 / 406.6 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.3846, allocations: 7.984 kB / 406.6 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.3846, allocations: 0 / 406.6 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3846, allocations: 0 / 406.6 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003924/0.385, allocations: 231.4 kB / 406.8 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.966e-05/0.3851, allocations: 84.95 kB / 406.9 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.826e-05/0.3851, allocations: 4 kB / 406.9 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.244e-05/0.3852, allocations: 12.03 kB / 406.9 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.763e-05/0.3852, allocations: 0 / 406.9 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.82e-06/0.3852, allocations: 4 kB / 406.9 MB, free: 2.242 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.47e-05/0.3853, allocations: 106.9 kB / 407 MB, free: 2.141 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3853, allocations: 3.938 kB / 407.1 MB, free: 2.137 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002382/0.3856, allocations: 23.94 kB / 407.1 MB, free: 2.113 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * 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 (7): * Single equations (assignments): 7 * 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 9.775e-05/0.3857, allocations: 103.2 kB / 407.2 MB, free: 2.004 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002798/0.3859, allocations: 79.89 kB / 407.3 MB, free: 1.926 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.386, allocations: 256 / 407.3 MB, free: 1.926 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.3861, allocations: 39.97 kB / 407.3 MB, free: 1.887 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003509/0.3864, allocations: 19.92 kB / 407.3 MB, free: 1.867 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006815/0.3871, allocations: 360.7 kB / 407.7 MB, free: 1.484 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.3874, allocations: 0.7078 MB / 408.4 MB, free: 0.75 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.955e-05/0.3874, allocations: 4.438 kB / 408.4 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.303e-05/0.3875, allocations: 11.44 kB / 408.4 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of SimCode: time 1.673e-06/0.3875, allocations: 0 / 408.4 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of Templates: time 0.003449/0.3909, allocations: 1 MB / 409.4 MB, free: 15.74 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches