Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 92.75 kB / 16.65 MB, free: 6.535 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.001712/0.001712, allocations: 172.8 kB / 17.56 MB, free: 6.184 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.405/1.405, allocations: 223.3 MB / 241.6 MB, free: 192 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002902/0.0002899, allocations: 8 kB / 301.5 MB, free: 6.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1256, allocations: 50.4 MB / 351.9 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01522/0.1409, allocations: 13.14 MB / 365.1 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01038/0.1514, allocations: 4.936 MB / 370 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003357/0.1548, allocations: 55.81 kB / 370.1 MB, free: 1.383 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00321/0.158, allocations: 0.7731 MB / 370.8 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00285/0.1609, allocations: 468.7 kB / 371.3 MB, free: 148 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.245/0.4059, allocations: 464.6 kB / 371.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004283/0.4102, allocations: 2.017 MB / 373.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001741/0.412, allocations: 0.9739 MB / 374.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001551/0.4136, allocations: 0.6112 MB / 375.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00113/0.4147, allocations: 0.7158 MB / 376.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002025/0.4149, allocations: 92.47 kB / 376.2 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004393/0.4154, allocations: 132.4 kB / 376.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002793/0.4156, allocations: 290.2 kB / 376.6 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001029/0.4167, allocations: 0.8358 MB / 377.4 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003533/0.4202, allocations: 2.553 MB / 380 MB, free: 9.289 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.4203, allocations: 0 / 380 MB, free: 9.289 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.4203, allocations: 3.375 kB / 380 MB, free: 9.289 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.131e-05/0.4204, allocations: 0 / 380 MB, free: 9.289 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004184/0.4245, allocations: 1.733 MB / 381.7 MB, free: 8.344 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.093e-05/0.4246, allocations: 9.594 kB / 381.7 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003815/0.425, allocations: 216.6 kB / 381.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009635/0.426, allocations: 249.9 kB / 382.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001828/0.4278, allocations: 1.018 MB / 383.2 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001244/0.428, allocations: 114.5 kB / 383.3 MB, free: 7.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000243/0.4282, allocations: 156.1 kB / 383.4 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003126/0.4313, allocations: 1.439 MB / 384.9 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.695e-05/0.4314, allocations: 10.22 kB / 384.9 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001329/0.4315, allocations: 64.86 kB / 385 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.277e-05/0.4316, allocations: 37.56 kB / 385 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002187/0.4338, allocations: 0.9771 MB / 386 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008707/0.4425, allocations: 6.178 MB / 392.1 MB, free: 2.289 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/0.4437, allocations: 0.6687 MB / 392.8 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004478/0.4442, allocations: 240.4 kB / 393 MB, free: 1.734 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.513e-05/0.4442, allocations: 6.156 kB / 393.1 MB, free: 1.734 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/0.4443, allocations: 46.34 kB / 393.1 MB, free: 1.684 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 2.635e-06/0.4443, allocations: 0 / 393.1 MB, free: 1.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.003574/0.4479, allocations: 1.755 MB / 394.9 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/0.4479, allocations: 85.89 kB / 394.9 MB, free: 468 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001928/0.4499, allocations: 1.128 MB / 396.1 MB, free: 15.83 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.425e-05/0.4499, allocations: 35.77 kB / 396.1 MB, free: 15.79 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006868/0.4506, allocations: 0.8054 MB / 396.9 MB, free: 15.08 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001973/0.4508, allocations: 202.6 kB / 397.1 MB, free: 14.91 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.451, allocations: 83.92 kB / 397.2 MB, free: 14.85 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.4511, allocations: 342.2 kB / 397.5 MB, free: 14.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005241/0.4517, allocations: 249.9 kB / 397.8 MB, free: 14.4 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008782/0.4526, allocations: 0.6349 MB / 398.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.4541, allocations: 0.9426 MB / 399.3 MB, free: 13.01 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.817e-06/0.4541, allocations: 5.781 kB / 399.3 MB, free: 13 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001982/0.4561, allocations: 1.015 MB / 400.4 MB, free: 12.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004266/0.4565, allocations: 480.9 kB / 400.8 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.4565, allocations: 12.94 kB / 400.8 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000184/0.4567, allocations: 34.34 kB / 400.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007332/0.4575, allocations: 231.9 kB / 401.1 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/0.4586, allocations: 1.307 MB / 402.4 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/0.4597, allocations: 60.52 kB / 402.5 MB, free: 10.53 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.737e-05/0.4598, allocations: 41.28 kB / 402.5 MB, free: 10.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.4598, allocations: 6.062 kB / 402.5 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001313/0.4611, allocations: 0.828 MB / 403.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/0.4611, allocations: 16.31 kB / 403.4 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001017/0.4612, allocations: 38.38 kB / 403.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006444/0.4619, allocations: 217.8 kB / 403.6 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009723/0.4629, allocations: 1.297 MB / 404.9 MB, free: 8.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009113/0.4638, allocations: 34.5 kB / 404.9 MB, free: 8.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.747e-05/0.4639, allocations: 43.16 kB / 405 MB, free: 8.75 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (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 (122): * Single equations (assignments): 121 * 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.0009501/0.4648, allocations: 411.7 kB / 405.4 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001972/0.465, allocations: 124.9 kB / 405.5 MB, free: 8.348 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001184/0.4662, allocations: 0.5826 MB / 406.1 MB, free: 7.938 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.4662, allocations: 4 kB / 406.1 MB, free: 7.934 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.4662, allocations: 0 / 406.1 MB, free: 7.934 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.4662, allocations: 4 kB / 406.1 MB, free: 7.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003367/0.4696, allocations: 1.882 MB / 408 MB, free: 5.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.4696, allocations: 4 kB / 408 MB, free: 5.977 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000509/0.4702, allocations: 120 kB / 408.1 MB, free: 5.859 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001084/0.4703, allocations: 24.84 kB / 408.1 MB, free: 5.832 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.066e-05/0.4703, allocations: 20 kB / 408.1 MB, free: 5.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.4714, allocations: 1.276 MB / 409.4 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.4714, allocations: 3.984 kB / 409.4 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001605/0.4731, allocations: 0.9461 MB / 410.4 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000461/0.4735, allocations: 243.5 kB / 410.6 MB, free: 3.148 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000131/0.4737, allocations: 16 kB / 410.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005474/0.4742, allocations: 39.97 kB / 410.7 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.4743, allocations: 44.36 kB / 410.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.228e-05/0.4744, allocations: 16 kB / 410.7 MB, free: 3.035 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001201/0.4756, allocations: 0.7555 MB / 411.5 MB, free: 2.273 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4756, allocations: 0 / 411.5 MB, free: 2.273 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00172/0.4773, allocations: 468 kB / 411.9 MB, free: 1.816 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,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,loadTorque.phi) * 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 (53): * 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: 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.002116/0.4794, allocations: 1.517 MB / 413.5 MB, free: 260 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002445/0.4819, allocations: 1.274 MB / 414.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.4819, allocations: 4 kB / 414.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005452/0.4825, allocations: 353.6 kB / 415.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00202/0.4845, allocations: 271.9 kB / 415.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02328/0.5078, allocations: 11.65 MB / 427 MB, free: 1.883 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001344/0.5092, allocations: 1.165 MB / 428.2 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001012/0.5102, allocations: 157.1 kB / 428.3 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009508/0.5112, allocations: 0.5501 MB / 428.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of SimCode: time 1.453e-06/0.5112, allocations: 4 kB / 428.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0555/0.5667, allocations: 23.57 MB / 452.4 MB, free: 8.777 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000241/0.567, allocations: 264.2 kB / 452.7 MB, free: 8.488 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.725/3.292, allocations: 0 / 452.7 MB, free: 8.488 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/CurrentControlledDCPM/CurrentControlledDCPM.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches