Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.CascadeControlledDrive.SubClocked,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.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,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.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 110.9 kB / 17.74 MB, free: 5.227 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.001864/0.001864, allocations: 180.5 kB / 18.66 MB, free: 4.312 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.395/1.395, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001068/0.001068, allocations: 51.91 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2511, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003568/0.2547, allocations: 2.342 MB / 403.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00136/0.2561, allocations: 0.8065 MB / 404.5 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.2562, allocations: 7.938 kB / 404.5 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002736/0.2565, allocations: 51.58 kB / 404.6 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001792/0.2567, allocations: 59.55 kB / 404.7 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004585/0.2572, allocations: 175.6 kB / 404.8 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003715/0.2576, allocations: 379.6 kB / 405.2 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002066/0.2578, allocations: 103.8 kB / 405.3 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002112/0.258, allocations: 159.5 kB / 405.5 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.2582, allocations: 183.2 kB / 405.6 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.104e-05/0.2583, allocations: 32 kB / 405.7 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.429e-05/0.2584, allocations: 36 kB / 405.7 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.2585, allocations: 95.66 kB / 405.8 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001318/0.2586, allocations: 151.2 kB / 405.9 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003267/0.259, allocations: 335.9 kB / 406.3 MB, free: 3.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.259, allocations: 0 / 406.3 MB, free: 3.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.259, allocations: 0 / 406.3 MB, free: 3.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.259, allocations: 0 / 406.3 MB, free: 3.98 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001172/0.2602, allocations: 0.624 MB / 406.9 MB, free: 3.309 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.2602, allocations: 11.89 kB / 406.9 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.914e-05/0.2603, allocations: 44.5 kB / 406.9 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003768/0.2607, allocations: 276.3 kB / 407.2 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000191/0.2609, allocations: 138.3 kB / 407.4 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.299e-05/0.261, allocations: 28.38 kB / 407.4 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001193/0.2622, allocations: 0.5777 MB / 408 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.2622, allocations: 0 / 408 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.615e-05/0.2622, allocations: 8 kB / 408 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.2622, allocations: 8 kB / 408 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001391/0.2636, allocations: 0.5113 MB / 408.5 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001458/0.2651, allocations: 0.9944 MB / 409.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00163/0.2668, allocations: 0.5102 MB / 410 MB, free: 12 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006576/0.2674, allocations: 255.4 kB / 410.2 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.711e-05/0.2675, allocations: 20.08 kB / 410.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.2675, allocations: 38.56 kB / 410.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.884e-06/0.2675, allocations: 4 kB / 410.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.04015/0.3077, allocations: 5.724 MB / 416 MB, free: 9.945 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.3078, allocations: 145 kB / 416.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002259/0.3081, allocations: 200.2 kB / 416.4 MB, free: 9.562 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.446e-05/0.3082, allocations: 37.7 kB / 416.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.215e-05/0.3083, allocations: 141.5 kB / 416.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002042/0.3085, allocations: 189.7 kB / 416.7 MB, free: 9.188 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002831/0.3088, allocations: 114.7 kB / 416.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.3089, allocations: 346.8 kB / 417.2 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001698/0.3106, allocations: 0.611 MB / 417.8 MB, free: 8.113 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001766/0.3124, allocations: 0.808 MB / 418.6 MB, free: 7.227 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003259/0.3157, allocations: 1.24 MB / 419.8 MB, free: 5.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.3157, allocations: 11.94 kB / 419.8 MB, free: 5.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003818/0.3195, allocations: 1.394 MB / 421.2 MB, free: 4.496 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.3196, allocations: 8 kB / 421.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/0.3196, allocations: 8 kB / 421.3 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.759e-05/0.3196, allocations: 8 kB / 421.3 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/0.321, allocations: 211.6 kB / 421.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.101e-05/0.3211, allocations: 8 kB / 421.5 MB, free: 4.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.3221, allocations: 103.8 kB / 421.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.52e-05/0.3222, allocations: 31.98 kB / 421.6 MB, free: 4.125 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0003521/0.3225, allocations: 185.6 kB / 421.8 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000343/0.3229, allocations: 153.2 kB / 421.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001887/0.3231, allocations: 63.25 kB / 422 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.3231, allocations: 12.23 kB / 422 MB, free: 3.703 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.3231, allocations: 0 / 422 MB, free: 3.703 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.155e-05/0.3231, allocations: 7.984 kB / 422 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005008/0.3282, allocations: 2.171 MB / 424.2 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/0.3282, allocations: 8 kB / 424.2 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007634/0.329, allocations: 184.3 kB / 424.4 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.489e-05/0.329, allocations: 16 kB / 424.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.333e-05/0.329, allocations: 31.98 kB / 424.4 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-05/0.3291, allocations: 15.94 kB / 424.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.147e-05/0.3291, allocations: 15.94 kB / 424.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003357/0.3324, allocations: 1.557 MB / 426 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001925/0.3326, allocations: 164.6 kB / 426.2 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.484e-05/0.3327, allocations: 24.17 kB / 426.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006032/0.3333, allocations: 71.92 kB / 426.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/0.3335, allocations: 103.7 kB / 426.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.703e-05/0.3336, allocations: 32 kB / 426.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001281/0.3337, allocations: 140.1 kB / 426.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3337, allocations: 0 / 426.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006748/0.3344, allocations: 124 kB / 426.7 MB, free: 14.7 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0001795/0.3346, allocations: 138.9 kB / 426.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002884/0.3375, allocations: 1.135 MB / 427.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.3375, allocations: 0 / 427.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.3385, allocations: 343.2 kB / 428.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008945/0.3394, allocations: 140.7 kB / 428.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/0.3419, allocations: 1.207 MB / 429.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000413/0.3423, allocations: 0.8129 MB / 430.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003441/0.3426, allocations: 47.42 kB / 430.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3427, allocations: 0 / 430.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of Templates: time 0.01128/0.3539, allocations: 7.219 MB / 437.7 MB, free: 3.5 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches