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.0009128/0.0009127, allocations: 92.53 kB / 16.3 MB, free: 5.527 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.0009498/0.0009498, allocations: 184.5 kB / 17.2 MB, free: 5.461 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.273/1.273, allocations: 223.2 MB / 241.1 MB, free: 14.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002594/0.0002595, allocations: 8 kB / 300.7 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1109, allocations: 50.4 MB / 351.1 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01395/0.125, allocations: 11.8 MB / 362.9 MB, free: 7.941 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008494/0.1335, allocations: 5.139 MB / 368.1 MB, free: 2.793 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002254/0.1358, allocations: 59.75 kB / 368.1 MB, free: 2.734 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002633/0.1384, allocations: 0.8432 MB / 369 MB, free: 1.887 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003061/0.1415, allocations: 0.884 MB / 369.9 MB, free: 1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001825/0.1434, allocations: 0.5734 MB / 370.4 MB, free: 436 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.21/0.3534, allocations: 1.592 MB / 372 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002016/0.3554, allocations: 0.8304 MB / 372.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001937/0.3574, allocations: 0.6258 MB / 373.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001648/0.3591, allocations: 0.7287 MB / 374.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003847/0.3595, allocations: 100.8 kB / 374.3 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007051/0.3602, allocations: 135.5 kB / 374.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002894/0.3605, allocations: 299 kB / 374.7 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005788/0.3611, allocations: 385.5 kB / 375.1 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003088/0.3642, allocations: 2.332 MB / 377.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3642, allocations: 0 / 377.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3642, allocations: 0 / 377.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.559e-05/0.3643, allocations: 2.594 kB / 377.4 MB, free: 9.703 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.004594/0.3689, allocations: 1.937 MB / 379.4 MB, free: 8.691 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.305e-05/0.369, allocations: 9.109 kB / 379.4 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00108/0.37, allocations: 269.7 kB / 379.7 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002255/0.3723, allocations: 1.094 MB / 380.8 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001458/0.3725, allocations: 123.2 kB / 380.9 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002989/0.3728, allocations: 173 kB / 381 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003365/0.3761, allocations: 1.588 MB / 382.6 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.738e-05/0.3762, allocations: 2.344 kB / 382.6 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001278/0.3764, allocations: 71.38 kB / 382.7 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.515e-05/0.3764, allocations: 40.78 kB / 382.7 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002457/0.3789, allocations: 1.112 MB / 383.9 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009514/0.3884, allocations: 6.697 MB / 390.6 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00179/0.3902, allocations: 0.9991 MB / 391.6 MB, free: 4.008 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.544e-05/0.3903, allocations: 6.562 kB / 391.6 MB, free: 4.008 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.3903, allocations: 49.17 kB / 391.6 MB, free: 3.961 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 3.086e-06/0.3903, allocations: 3.469 kB / 391.6 MB, free: 3.961 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.004344/0.3947, allocations: 2.119 MB / 393.7 MB, free: 3.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.241e-05/0.3948, allocations: 87.52 kB / 393.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001934/0.3967, allocations: 1.243 MB / 395.1 MB, free: 2.641 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.298e-05/0.3968, allocations: 40.08 kB / 395.1 MB, free: 2.609 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004783/0.3973, allocations: 0.8903 MB / 396 MB, free: 2.102 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.3975, allocations: 241.2 kB / 396.2 MB, free: 1.934 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.762e-05/0.3975, allocations: 23.94 kB / 396.2 MB, free: 1.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.62e-05/0.3976, allocations: 347.1 kB / 396.6 MB, free: 1.613 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006327/0.3982, allocations: 311.4 kB / 396.9 MB, free: 1.566 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008292/0.3991, allocations: 0.7213 MB / 397.6 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007183/0.3998, allocations: 414.4 kB / 398 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.817e-06/0.3998, allocations: 8.078 kB / 398 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002066/0.4019, allocations: 1.183 MB / 399.2 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001787/0.4037, allocations: 5.376 MB / 404.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.416e-05/0.4037, allocations: 15.81 kB / 404.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002218/0.4039, allocations: 40.53 kB / 404.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009239/0.4049, allocations: 277.7 kB / 404.9 MB, free: 11.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009804/0.4059, allocations: 1.302 MB / 406.2 MB, free: 9.684 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001198/0.4071, allocations: 63.94 kB / 406.3 MB, free: 9.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.082e-05/0.4072, allocations: 49.91 kB / 406.3 MB, free: 9.652 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.786e-06/0.4072, allocations: 7.125 kB / 406.3 MB, free: 9.648 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001542/0.4087, allocations: 0.9518 MB / 407.3 MB, free: 9.211 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/0.4088, allocations: 18.03 kB / 407.3 MB, free: 9.207 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001015/0.4089, allocations: 37.66 kB / 407.3 MB, free: 9.195 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000781/0.4097, allocations: 261.2 kB / 407.6 MB, free: 9.133 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008867/0.4106, allocations: 1.299 MB / 408.9 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001054/0.4116, allocations: 59.12 kB / 408.9 MB, free: 7.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.376e-05/0.4117, allocations: 49.25 kB / 409 MB, free: 7.746 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009222/0.4126, allocations: 433 kB / 409.4 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002729/0.4129, allocations: 132.1 kB / 409.5 MB, free: 7.332 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001457/0.4144, allocations: 0.7329 MB / 410.3 MB, free: 6.824 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.4144, allocations: 5.969 kB / 410.3 MB, free: 6.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.4144, allocations: 4 kB / 410.3 MB, free: 6.816 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.4144, allocations: 3.984 kB / 410.3 MB, free: 6.812 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003579/0.418, allocations: 2.162 MB / 412.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.418, allocations: 7.938 kB / 412.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006255/0.4187, allocations: 148 kB / 412.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000137/0.4188, allocations: 24.84 kB / 412.6 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.307e-05/0.4189, allocations: 15.94 kB / 412.6 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008911/0.4198, allocations: 1.288 MB / 413.9 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.227e-06/0.4198, allocations: 4 kB / 413.9 MB, free: 2.953 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002094/0.4219, allocations: 1.256 MB / 415.2 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005968/0.4225, allocations: 267.3 kB / 415.5 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.4227, allocations: 19.98 kB / 415.5 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006318/0.4233, allocations: 55.97 kB / 415.5 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.4234, allocations: 48.39 kB / 415.6 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.771e-05/0.4235, allocations: 20 kB / 415.6 MB, free: 1.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001267/0.4247, allocations: 0.8288 MB / 416.4 MB, free: 360 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4247, allocations: 0 / 416.4 MB, free: 360 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.001937/0.4267, allocations: 0.5 MB / 416.9 MB, free: 15.85 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003025/0.427, allocations: 146.6 kB / 417.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002841/0.4298, allocations: 1.472 MB / 418.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.84e-06/0.4299, allocations: 4.062 kB / 418.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007714/0.4307, allocations: 442.1 kB / 419 MB, free: 13.76 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001787/0.4325, allocations: 294.5 kB / 419.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006223/0.4387, allocations: 3.461 MB / 422.7 MB, free: 9.969 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008452/0.4396, allocations: 1.268 MB / 424 MB, free: 8.668 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009868/0.4406, allocations: 186.5 kB / 424.2 MB, free: 8.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000223/0.4408, allocations: 79.44 kB / 424.3 MB, free: 8.402 MB / 334.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4408, allocations: 3.938 kB / 424.3 MB, free: 8.398 MB / 334.1 MB Notification: Performance of Templates: time 0.0283/0.4691, allocations: 13.53 MB / 437.8 MB, free: 11.03 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/SpeedControlledDCPM/SpeedControlledDCPM.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches