Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007226/0.0007226, allocations: 92.84 kB / 16.04 MB, free: 5.609 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07339/0.07339, allocations: 12.63 MB / 29.4 MB, free: 252 kB / 18.57 MB Notification: Performance of FrontEnd - loaded program: time 0.0001642/0.0001642, allocations: 4 kB / 40.27 MB, free: 4.121 MB / 33.03 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.004796/0.004973, allocations: 2.822 MB / 43.09 MB, free: 1.297 MB / 33.03 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 1.355/1.36, allocations: 278.3 MB / 321.4 MB, free: 10 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001168/1.361, allocations: 0.7472 MB / 322.1 MB, free: 9.254 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/1.361, allocations: 8.719 kB / 322.1 MB, free: 9.246 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000211/1.361, allocations: 39.77 kB / 322.1 MB, free: 9.207 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001578/1.362, allocations: 52.73 kB / 322.2 MB, free: 9.156 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004046/1.362, allocations: 154.5 kB / 322.4 MB, free: 9.008 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003326/1.362, allocations: 367.5 kB / 322.7 MB, free: 8.648 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002377/1.363, allocations: 179.7 kB / 322.9 MB, free: 8.473 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001814/1.363, allocations: 142.1 kB / 323 MB, free: 8.336 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001836/1.363, allocations: 151.3 kB / 323.2 MB, free: 8.188 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.823e-05/1.363, allocations: 16 kB / 323.2 MB, free: 8.172 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.622e-05/1.363, allocations: 16 kB / 323.2 MB, free: 8.156 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.44e-05/1.363, allocations: 71.72 kB / 323.3 MB, free: 8.086 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001304/1.363, allocations: 160.9 kB / 323.4 MB, free: 7.922 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002645/1.364, allocations: 304.8 kB / 323.7 MB, free: 7.625 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/1.364, allocations: 0 / 323.7 MB, free: 7.625 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.473e-06/1.364, allocations: 0 / 323.7 MB, free: 7.625 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.007e-06/1.364, allocations: 0.6562 kB / 323.7 MB, free: 7.625 MB / 250.7 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.0009689/1.365, allocations: 0.5875 MB / 324.3 MB, free: 6.996 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/1.365, allocations: 9 kB / 324.3 MB, free: 6.988 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.676e-05/1.365, allocations: 40.56 kB / 324.4 MB, free: 6.949 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003103/1.365, allocations: 281 kB / 324.6 MB, free: 6.633 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001956/1.365, allocations: 145.1 kB / 324.8 MB, free: 6.477 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.642e-05/1.365, allocations: 28.38 kB / 324.8 MB, free: 6.449 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/1.366, allocations: 0.5785 MB / 325.4 MB, free: 5.852 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/1.366, allocations: 4 kB / 325.4 MB, free: 5.848 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.057e-05/1.366, allocations: 15.94 kB / 325.4 MB, free: 5.832 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/1.366, allocations: 9.875 kB / 325.4 MB, free: 5.824 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001251/1.368, allocations: 0.5301 MB / 325.9 MB, free: 5.297 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001377/1.369, allocations: 1.021 MB / 327 MB, free: 4.203 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/1.37, allocations: 0.5146 MB / 327.5 MB, free: 3.652 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005439/1.371, allocations: 267.4 kB / 327.7 MB, free: 3.379 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.801e-05/1.371, allocations: 11.94 kB / 327.8 MB, free: 3.367 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.776e-05/1.371, allocations: 42.55 kB / 327.8 MB, free: 3.316 MB / 250.7 MB Notification: Performance of pre-optimization done (n=44): time 1.482e-06/1.371, allocations: 0 / 327.8 MB, free: 3.316 MB / 250.7 MB Notification: Performance of matching and sorting (n=72): time 0.03395/1.405, allocations: 6.753 MB / 334.5 MB, free: 12.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.492e-05/1.405, allocations: 145 kB / 334.7 MB, free: 12.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/1.405, allocations: 197.1 kB / 334.9 MB, free: 12.17 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.104e-05/1.405, allocations: 37.7 kB / 334.9 MB, free: 12.13 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.244e-05/1.406, allocations: 141.5 kB / 335.1 MB, free: 11.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/1.406, allocations: 189.3 kB / 335.2 MB, free: 11.8 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.251e-05/1.406, allocations: 20 kB / 335.3 MB, free: 11.78 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.962e-05/1.406, allocations: 346.8 kB / 335.6 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001371/1.407, allocations: 0.65 MB / 336.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/1.409, allocations: 0.8315 MB / 337.1 MB, free: 9.875 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002623/1.411, allocations: 1.322 MB / 338.4 MB, free: 8.477 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/1.411, allocations: 0 / 338.4 MB, free: 8.477 MB / 266.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003091/1.414, allocations: 1.464 MB / 339.9 MB, free: 7.008 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/1.414, allocations: 8 kB / 339.9 MB, free: 7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/1.415, allocations: 12.03 kB / 339.9 MB, free: 6.988 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/1.415, allocations: 8 kB / 339.9 MB, free: 6.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/1.416, allocations: 235.6 kB / 340.1 MB, free: 6.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-05/1.416, allocations: 12 kB / 340.1 MB, free: 6.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008256/1.417, allocations: 123.7 kB / 340.3 MB, free: 6.617 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-05/1.417, allocations: 28.38 kB / 340.3 MB, free: 6.59 MB / 266.7 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.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 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.0002618/1.417, allocations: 185.8 kB / 340.5 MB, free: 6.398 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002737/1.417, allocations: 161.1 kB / 340.6 MB, free: 6.234 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001324/1.417, allocations: 67.3 kB / 340.7 MB, free: 6.168 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/1.417, allocations: 8 kB / 340.7 MB, free: 6.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/1.417, allocations: 0 / 340.7 MB, free: 6.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/1.417, allocations: 7.984 kB / 340.7 MB, free: 6.152 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004182/1.422, allocations: 2.285 MB / 343 MB, free: 3.684 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/1.422, allocations: 12 kB / 343 MB, free: 3.672 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006804/1.422, allocations: 203.9 kB / 343.2 MB, free: 3.473 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.169e-05/1.422, allocations: 12 kB / 343.2 MB, free: 3.461 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.401e-05/1.422, allocations: 24 kB / 343.2 MB, free: 3.438 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.001e-05/1.422, allocations: 23.92 kB / 343.3 MB, free: 3.414 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.669e-06/1.422, allocations: 15.94 kB / 343.3 MB, free: 3.398 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002805/1.425, allocations: 1.673 MB / 344.9 MB, free: 1.574 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001766/1.425, allocations: 168.5 kB / 345.1 MB, free: 1.391 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.738e-05/1.426, allocations: 32 kB / 345.1 MB, free: 1.359 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005233/1.426, allocations: 95.97 kB / 345.2 MB, free: 1.266 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/1.426, allocations: 99.66 kB / 345.3 MB, free: 1.168 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.343e-05/1.426, allocations: 32 kB / 345.4 MB, free: 1.137 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001205/1.426, allocations: 140.3 kB / 345.5 MB, free: 1 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.426, allocations: 0 / 345.5 MB, free: 1 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005843/1.427, allocations: 120 kB / 345.6 MB, free: 0.8828 MB / 266.7 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.0001477/1.427, allocations: 141.7 kB / 345.8 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002485/1.43, allocations: 1.187 MB / 346.9 MB, free: 15.54 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/1.43, allocations: 4.438 kB / 347 MB, free: 15.54 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009009/1.431, allocations: 378 kB / 347.3 MB, free: 15.17 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/1.432, allocations: 146.5 kB / 347.5 MB, free: 15.03 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002097/1.434, allocations: 1.374 MB / 348.8 MB, free: 13.5 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/1.434, allocations: 0.8128 MB / 349.7 MB, free: 12.66 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005488/1.435, allocations: 87.39 kB / 349.7 MB, free: 12.57 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002649/1.435, allocations: 43.42 kB / 349.8 MB, free: 12.53 MB / 282.7 MB Notification: Performance of SimCode: time 6.01e-07/1.435, allocations: 0 / 349.8 MB, free: 12.53 MB / 282.7 MB Notification: Performance of Templates: time 0.01054/1.446, allocations: 7.512 MB / 357.3 MB, free: 5.027 MB / 282.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:PI.y,Time,angle.phi,gain.y,speed.w Variables in the result:PI.T,PI.k,PI.y,angle.phi,gain.k,gain.y,hold1.y_start,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.w,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,speed.w,subSample1.factor,super.factor,super.inferFactor,time