Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.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 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.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008282/0.0008282, allocations: 102.4 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007846/0.0007847, allocations: 182.8 kB / 16.96 MB, free: 6.668 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.211/1.211, allocations: 205.4 MB / 223.1 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06004/0.06004, allocations: 12.59 MB / 284 MB, free: 8.59 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.0006121/0.0006122, allocations: 20 kB / 345.1 MB, free: 20.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06687/0.06749, allocations: 50.39 MB / 395.5 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.002016/0.06954, allocations: 1.844 MB / 397.4 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009226/0.07048, allocations: 0.6675 MB / 398 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.883e-05/0.07058, allocations: 4 kB / 398.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002106/0.0708, allocations: 47.75 kB / 398.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.07092, allocations: 39.77 kB / 398.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002794/0.07121, allocations: 99.88 kB / 398.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003059/0.07153, allocations: 335.2 kB / 398.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.07168, allocations: 60.41 kB / 398.6 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/0.07185, allocations: 127.5 kB / 398.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001826/0.07205, allocations: 135.5 kB / 398.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.581e-05/0.07209, allocations: 16 kB / 398.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.267e-05/0.07213, allocations: 16 kB / 398.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.22e-05/0.07222, allocations: 71.72 kB / 399 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.07233, allocations: 137.2 kB / 399.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002281/0.07257, allocations: 266.9 kB / 399.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.07258, allocations: 0 / 399.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.07259, allocations: 4 kB / 399.4 MB, free: 14.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.057e-06/0.0726, allocations: 0 / 399.4 MB, free: 14.56 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0009445/0.07355, allocations: 0.5495 MB / 399.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.703e-05/0.07358, allocations: 8.031 kB / 399.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.894e-05/0.07365, allocations: 32.66 kB / 400 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002479/0.0739, allocations: 248.4 kB / 400.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001916/0.0741, allocations: 142.2 kB / 400.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.172e-05/0.07416, allocations: 27.94 kB / 400.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007992/0.07497, allocations: 379.6 kB / 400.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.075, allocations: 3.984 kB / 400.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.835e-05/0.07503, allocations: 4 kB / 400.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.07504, allocations: 12 kB / 400.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/0.07636, allocations: 0.5174 MB / 401.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.0779, allocations: 1.03 MB / 402.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.07904, allocations: 355 kB / 402.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004903/0.07955, allocations: 189.2 kB / 402.8 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.07958, allocations: 8.234 kB / 402.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.07961, allocations: 38.8 kB / 402.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.292e-06/0.07962, allocations: 0 / 402.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02696/0.1066, allocations: 6.667 MB / 409.6 MB, free: 4.078 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.1066, allocations: 59.84 kB / 409.6 MB, free: 4.008 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002104/0.1069, allocations: 190.3 kB / 409.8 MB, free: 3.812 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.002e-05/0.1069, allocations: 41.64 kB / 409.8 MB, free: 3.766 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.307e-05/0.107, allocations: 156.6 kB / 410 MB, free: 3.605 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.1072, allocations: 173.5 kB / 410.2 MB, free: 3.434 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.542e-05/0.1073, allocations: 49.69 kB / 410.2 MB, free: 3.379 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1074, allocations: 334.8 kB / 410.5 MB, free: 3.043 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001318/0.1087, allocations: 0.4891 MB / 411 MB, free: 2.555 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001332/0.11, allocations: 0.5607 MB / 411.6 MB, free: 1.977 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002383/0.1124, allocations: 0.8736 MB / 412.5 MB, free: 1.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1124, allocations: 4 kB / 412.5 MB, free: 1.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002737/0.1152, allocations: 1.065 MB / 413.5 MB, free: 16 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1152, allocations: 17.12 kB / 413.5 MB, free: 0 / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.1152, allocations: 0 / 413.5 MB, free: 0 / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.577e-05/0.1153, allocations: 4.047 kB / 413.6 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009353/0.1162, allocations: 183.8 kB / 413.7 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.1162, allocations: 7.938 kB / 413.7 MB, free: 15.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006717/0.1169, allocations: 107.9 kB / 413.8 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.661e-05/0.117, allocations: 16 kB / 413.9 MB, free: 15.69 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: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0001972/0.1172, allocations: 153.8 kB / 414 MB, free: 15.53 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.774e-05/0.1172, allocations: 35.58 kB / 414 MB, free: 15.49 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00012/0.1174, allocations: 47.31 kB / 414.1 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1174, allocations: 8 kB / 414.1 MB, free: 15.44 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.1174, allocations: 0 / 414.1 MB, free: 15.44 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.1174, allocations: 3.984 kB / 414.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003939/0.1213, allocations: 2.01 MB / 416.1 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.275e-06/0.1214, allocations: 8 kB / 416.1 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006333/0.122, allocations: 164.5 kB / 416.3 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.08e-05/0.122, allocations: 15.94 kB / 416.3 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.69e-05/0.1221, allocations: 20 kB / 416.3 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.115e-05/0.1221, allocations: 15.92 kB / 416.3 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.116e-06/0.1221, allocations: 15.94 kB / 416.3 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002753/0.1249, allocations: 1.329 MB / 417.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001464/0.125, allocations: 152.7 kB / 417.8 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.666e-05/0.1251, allocations: 27.98 kB / 417.9 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005184/0.1256, allocations: 87.92 kB / 417.9 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.1258, allocations: 91.66 kB / 418 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.33e-05/0.1258, allocations: 20 kB / 418.1 MB, free: 11.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001447/0.126, allocations: 148.3 kB / 418.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.126, allocations: 4 kB / 418.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004369/0.1264, allocations: 96 kB / 418.3 MB, free: 10.93 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001313/0.1265, allocations: 123.1 kB / 418.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002261/0.1288, allocations: 0.9196 MB / 419.3 MB, free: 9.883 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.1288, allocations: 4.188 kB / 419.3 MB, free: 9.879 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009119/0.1297, allocations: 361.6 kB / 419.7 MB, free: 9.527 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006535/0.1304, allocations: 64.05 kB / 419.8 MB, free: 9.465 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001927/0.1323, allocations: 1.199 MB / 421 MB, free: 8.137 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.1327, allocations: 0.7882 MB / 421.7 MB, free: 7.324 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004402/0.1331, allocations: 79.19 kB / 421.8 MB, free: 7.242 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001975/0.1333, allocations: 27.44 kB / 421.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1333, allocations: 0 / 421.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of Templates: time 0.008118/0.1414, allocations: 5.161 MB / 427 MB, free: 2.051 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches