Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.iMotFilter.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|preFilter.y|slewRateLimiter.y|speedController.integrator.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.iMotFilter.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|preFilter.y|slewRateLimiter.y|speedController.integrator.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 91.19 kB / 17.31 MB, free: 5.59 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.001332/0.001332, allocations: 178.5 kB / 18.21 MB, free: 5.191 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.098/1.098, allocations: 223.3 MB / 242.3 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001977/0.0001977, allocations: 7.984 kB / 302.1 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07099/0.0712, allocations: 50.41 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01182/0.08303, allocations: 13.67 MB / 366.2 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006945/0.08999, allocations: 5.15 MB / 371.3 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00142/0.09143, allocations: 59.75 kB / 371.4 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.117/0.2085, allocations: 0.7884 MB / 372.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001916/0.2104, allocations: 491.6 kB / 372.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009035/0.2113, allocations: 0.5369 MB / 373.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00186/0.2132, allocations: 2.235 MB / 375.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001201/0.2144, allocations: 1.056 MB / 376.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006519/0.2151, allocations: 0.6654 MB / 377.1 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006197/0.2157, allocations: 0.7815 MB / 377.9 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001424/0.2158, allocations: 97.62 kB / 378 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003001/0.2161, allocations: 137.6 kB / 378.1 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001925/0.2163, allocations: 319.2 kB / 378.5 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005585/0.2169, allocations: 0.9046 MB / 379.4 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001817/0.2187, allocations: 2.358 MB / 381.7 MB, free: 9.035 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2187, allocations: 1.344 kB / 381.7 MB, free: 9.035 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2187, allocations: 0 / 381.7 MB, free: 9.035 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.041e-05/0.2188, allocations: 0 / 381.7 MB, free: 9.035 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.0025/0.2213, allocations: 1.927 MB / 383.6 MB, free: 8.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.2213, allocations: 13.59 kB / 383.7 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005842/0.2219, allocations: 262.4 kB / 383.9 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/0.2231, allocations: 1.124 MB / 385 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.288e-05/0.2232, allocations: 124.8 kB / 385.2 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001826/0.2234, allocations: 172.1 kB / 385.3 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002208/0.2256, allocations: 1.617 MB / 386.9 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.748e-05/0.2257, allocations: 2.375 kB / 386.9 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001085/0.2258, allocations: 71.03 kB / 387 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.809e-05/0.2258, allocations: 39.78 kB / 387.1 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001833/0.2276, allocations: 1.125 MB / 388.2 MB, free: 6.102 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00597/0.2336, allocations: 6.719 MB / 394.9 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001366/0.235, allocations: 1.007 MB / 395.9 MB, free: 48 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005416/0.2356, allocations: 325.2 kB / 396.2 MB, free: 15.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.538e-05/0.2356, allocations: 14.92 kB / 396.2 MB, free: 15.9 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/0.2356, allocations: 39.72 kB / 396.3 MB, free: 15.86 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 1.553e-06/0.2356, allocations: 0.9375 kB / 396.3 MB, free: 15.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.003347/0.239, allocations: 2.136 MB / 398.4 MB, free: 14.56 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.239, allocations: 83.3 kB / 398.5 MB, free: 14.46 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001449/0.2405, allocations: 1.268 MB / 399.8 MB, free: 13.76 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.128e-05/0.2406, allocations: 40.61 kB / 399.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005298/0.2411, allocations: 0.8899 MB / 400.7 MB, free: 12.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001603/0.2413, allocations: 246.7 kB / 400.9 MB, free: 12.72 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.2414, allocations: 94.02 kB / 401 MB, free: 12.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.2415, allocations: 347.2 kB / 401.4 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005534/0.242, allocations: 318.7 kB / 401.7 MB, free: 12.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007657/0.2428, allocations: 0.7319 MB / 402.4 MB, free: 11.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001321/0.2441, allocations: 1.08 MB / 403.5 MB, free: 10.61 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.2442, allocations: 6.031 kB / 403.5 MB, free: 10.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001692/0.2459, allocations: 1.202 MB / 404.7 MB, free: 10.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002506/0.2461, allocations: 499.3 kB / 405.2 MB, free: 9.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.2461, allocations: 19.5 kB / 405.2 MB, free: 9.363 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000123/0.2463, allocations: 39.25 kB / 405.2 MB, free: 9.348 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007664/0.247, allocations: 276.8 kB / 405.5 MB, free: 9.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008081/0.2479, allocations: 1.288 MB / 406.8 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006353/0.2485, allocations: 79.94 kB / 406.9 MB, free: 7.672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.782e-05/0.2486, allocations: 51.98 kB / 406.9 MB, free: 7.621 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.3e-06/0.2486, allocations: 4 kB / 406.9 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001347/0.2499, allocations: 0.9576 MB / 407.9 MB, free: 6.656 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.25, allocations: 16 kB / 407.9 MB, free: 6.641 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.254e-05/0.25, allocations: 40.84 kB / 407.9 MB, free: 6.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006976/0.2507, allocations: 251.6 kB / 408.2 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007452/0.2515, allocations: 1.3 MB / 409.5 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005386/0.252, allocations: 52.14 kB / 409.5 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.318e-05/0.2521, allocations: 48 kB / 409.6 MB, free: 4.82 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004754/0.2526, allocations: 436.6 kB / 410 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.2527, allocations: 134.3 kB / 410.1 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001268/0.254, allocations: 0.7322 MB / 410.9 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.254, allocations: 8 kB / 410.9 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.254, allocations: 0 / 410.9 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.2541, allocations: 7.922 kB / 410.9 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002876/0.2569, allocations: 2.189 MB / 413.1 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.257, allocations: 0 / 413.1 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005567/0.2575, allocations: 139.8 kB / 413.2 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.658e-05/0.2576, allocations: 33.06 kB / 413.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.236e-05/0.2576, allocations: 12 kB / 413.3 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007436/0.2584, allocations: 1.277 MB / 414.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.2584, allocations: 8.016 kB / 414.5 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001699/0.2601, allocations: 1.163 MB / 415.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000307/0.2604, allocations: 267.3 kB / 416 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.2606, allocations: 16 kB / 416 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005409/0.2611, allocations: 59.95 kB / 416 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.366e-05/0.2612, allocations: 48.44 kB / 416.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.074e-05/0.2612, allocations: 20 kB / 416.1 MB, free: 14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009889/0.2622, allocations: 0.8461 MB / 417 MB, free: 13.15 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2622, allocations: 3.938 kB / 417 MB, free: 13.14 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001205/0.2634, allocations: 0.504 MB / 417.5 MB, free: 12.64 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.w,dcpm.inertiaRotor.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y,preFilter.y,slewRateLimiter.y) * 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 (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001807/0.2636, allocations: 143.1 kB / 417.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002132/0.2658, allocations: 1.503 MB / 419.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2658, allocations: 0 / 419.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006291/0.2664, allocations: 442.3 kB / 419.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001549/0.268, allocations: 318.3 kB / 419.9 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004065/0.272, allocations: 3.715 MB / 423.6 MB, free: 6.453 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006947/0.2727, allocations: 1.229 MB / 424.8 MB, free: 5.191 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000231/0.273, allocations: 95.42 kB / 424.9 MB, free: 5.098 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.273, allocations: 0 / 424.9 MB, free: 5.098 MB / 334.1 MB Notification: Performance of Templates: time 0.02417/0.2972, allocations: 25.43 MB / 450.3 MB, free: 11.73 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/SpeedControlledDCPM/SpeedControlledDCPM.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches