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.001169/0.001169, allocations: 104.6 kB / 16.03 MB, free: 6.277 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.001096/0.001096, allocations: 194.1 kB / 16.95 MB, free: 6.098 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.703/1.703, allocations: 205.1 MB / 222.8 MB, free: 12.44 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.07685/0.07685, allocations: 12.58 MB / 282.7 MB, free: 15.64 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.002951/0.002951, allocations: 83.88 kB / 343 MB, free: 3.32 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2864, allocations: 49.38 MB / 392.3 MB, free: 49.14 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.003703/0.2902, allocations: 2.201 MB / 394.5 MB, free: 47.6 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.2915, allocations: 0.683 MB / 395.2 MB, free: 47.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001363/0.2916, allocations: 6.438 kB / 395.2 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003458/0.292, allocations: 38.78 kB / 395.3 MB, free: 47.1 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001481/0.2921, allocations: 37.14 kB / 395.3 MB, free: 47.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004179/0.2926, allocations: 112 kB / 395.4 MB, free: 47.01 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004759/0.2931, allocations: 352.6 kB / 395.8 MB, free: 46.85 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002306/0.2933, allocations: 70.17 kB / 395.8 MB, free: 46.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002218/0.2935, allocations: 144.3 kB / 396 MB, free: 46.76 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002484/0.2938, allocations: 156.8 kB / 396.1 MB, free: 46.69 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.406e-05/0.2938, allocations: 31.84 kB / 396.2 MB, free: 46.69 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.305e-05/0.2939, allocations: 30.56 kB / 396.2 MB, free: 46.69 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.294, allocations: 87 kB / 396.3 MB, free: 46.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.2941, allocations: 121.3 kB / 396.4 MB, free: 46.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002667/0.2944, allocations: 279.8 kB / 396.7 MB, free: 46.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2944, allocations: 0 / 396.7 MB, free: 46.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2944, allocations: 1.094 kB / 396.7 MB, free: 46.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.2944, allocations: 4 kB / 396.7 MB, free: 46.38 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0009354/0.2954, allocations: 0.578 MB / 397.3 MB, free: 45.87 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.2954, allocations: 9.656 kB / 397.3 MB, free: 45.87 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.699e-05/0.2955, allocations: 30.59 kB / 397.3 MB, free: 45.86 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002361/0.2957, allocations: 251.1 kB / 397.5 MB, free: 45.6 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001663/0.2959, allocations: 130 kB / 397.7 MB, free: 45.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.3e-05/0.296, allocations: 27.53 kB / 397.7 MB, free: 45.47 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007824/0.2968, allocations: 364.5 kB / 398 MB, free: 45.24 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.2968, allocations: 5.016 kB / 398 MB, free: 45.24 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.2968, allocations: 10.41 kB / 398.1 MB, free: 45.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.2968, allocations: 4.469 kB / 398.1 MB, free: 45.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001289/0.2981, allocations: 494.2 kB / 398.5 MB, free: 45.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001537/0.2997, allocations: 1.024 MB / 399.6 MB, free: 44.15 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001142/0.3008, allocations: 341.9 kB / 399.9 MB, free: 43.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004698/0.3013, allocations: 180.9 kB / 400.1 MB, free: 43.89 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.988e-05/0.3014, allocations: 3.703 kB / 400.1 MB, free: 43.89 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.3014, allocations: 31.86 kB / 400.1 MB, free: 43.85 MB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 2.024e-06/0.3014, allocations: 0 / 400.1 MB, free: 43.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.02505/0.3265, allocations: 5.802 MB / 405.9 MB, free: 40.2 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.597e-05/0.3265, allocations: 55.84 kB / 406 MB, free: 40.13 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001986/0.3267, allocations: 198.2 kB / 406.2 MB, free: 39.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.583e-05/0.3268, allocations: 37.7 kB / 406.2 MB, free: 39.88 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.052e-05/0.3269, allocations: 144.7 kB / 406.3 MB, free: 39.73 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/0.327, allocations: 177.4 kB / 406.5 MB, free: 39.56 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/0.3272, allocations: 94.16 kB / 406.6 MB, free: 39.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.643e-05/0.3272, allocations: 338.8 kB / 406.9 MB, free: 39.12 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/0.3282, allocations: 464.8 kB / 407.4 MB, free: 38.67 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001038/0.3293, allocations: 0.5177 MB / 407.9 MB, free: 38.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001834/0.3311, allocations: 0.8032 MB / 408.7 MB, free: 37.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3312, allocations: 4 kB / 408.7 MB, free: 37.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002353/0.3335, allocations: 0.9905 MB / 409.7 MB, free: 36.31 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.3335, allocations: 13.12 kB / 409.7 MB, free: 36.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.3336, allocations: 4 kB / 409.7 MB, free: 36.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.3336, allocations: 0 / 409.7 MB, free: 36.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008692/0.3345, allocations: 171.8 kB / 409.9 MB, free: 36.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.3345, allocations: 4 kB / 409.9 MB, free: 36.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006029/0.3351, allocations: 87.88 kB / 410 MB, free: 36.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.154e-05/0.3352, allocations: 16 kB / 410 MB, free: 36.02 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.0002168/0.3354, allocations: 154.6 kB / 410.2 MB, free: 35.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.757e-05/0.3355, allocations: 35.56 kB / 410.2 MB, free: 35.83 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.814e-05/0.3356, allocations: 51.3 kB / 410.2 MB, free: 35.78 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.3356, allocations: 8 kB / 410.2 MB, free: 35.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.3356, allocations: 0 / 410.2 MB, free: 35.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.3356, allocations: 3.984 kB / 410.2 MB, free: 35.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003368/0.339, allocations: 1.866 MB / 412.1 MB, free: 33.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.339, allocations: 12.94 kB / 412.1 MB, free: 33.72 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005656/0.3396, allocations: 151.8 kB / 412.3 MB, free: 33.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-05/0.3396, allocations: 11.94 kB / 412.3 MB, free: 33.56 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.907e-05/0.3396, allocations: 20 kB / 412.3 MB, free: 33.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.776e-06/0.3397, allocations: 15.94 kB / 412.3 MB, free: 33.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.3397, allocations: 15.98 kB / 412.3 MB, free: 33.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002199/0.3419, allocations: 1.23 MB / 413.6 MB, free: 32.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001313/0.342, allocations: 148.8 kB / 413.7 MB, free: 31.99 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.119e-05/0.3421, allocations: 20 kB / 413.7 MB, free: 31.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000466/0.3426, allocations: 75.91 kB / 413.8 MB, free: 31.9 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.3427, allocations: 79.73 kB / 413.9 MB, free: 31.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-05/0.3428, allocations: 28 kB / 413.9 MB, free: 31.79 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001264/0.3429, allocations: 156.2 kB / 414.1 MB, free: 31.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3429, allocations: 0 / 414.1 MB, free: 31.64 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004605/0.3434, allocations: 100 kB / 414.2 MB, free: 31.54 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.0001271/0.3435, allocations: 123 kB / 414.3 MB, free: 31.41 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001928/0.3454, allocations: 0.8727 MB / 415.2 MB, free: 30.54 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3454, allocations: 0 / 415.2 MB, free: 30.54 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007695/0.3462, allocations: 321.8 kB / 415.5 MB, free: 30.23 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005886/0.3468, allocations: 51.97 kB / 415.5 MB, free: 30.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.3487, allocations: 1.158 MB / 416.7 MB, free: 28.88 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.3489, allocations: 0.784 MB / 417.5 MB, free: 28.07 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004701/0.3494, allocations: 79.23 kB / 417.5 MB, free: 28 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001964/0.3496, allocations: 35.44 kB / 417.6 MB, free: 27.96 MB / 318.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3496, allocations: 0 / 417.6 MB, free: 27.96 MB / 318.1 MB Notification: Performance of Templates: time 0.00839/0.358, allocations: 5.503 MB / 423.1 MB, free: 22.48 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.makefile (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) 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