Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",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.001309/0.001309, allocations: 112.8 kB / 17.06 MB, free: 5.973 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.001532/0.001532, allocations: 200 kB / 18.01 MB, free: 5.047 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.411/1.411, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1749/0.1749, allocations: 38.05 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 63.91 kB / 457.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3701, allocations: 58.05 MB / 0.5036 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006286/0.3764, allocations: 5.257 MB / 0.5088 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002302/0.3788, allocations: 1.574 MB / 0.5103 GB, free: 2.633 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002352/0.379, allocations: 16.34 kB / 0.5103 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003785/0.3794, allocations: 120 kB / 0.5104 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007272/0.3802, allocations: 325.4 kB / 0.5107 GB, free: 2.367 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.3806, allocations: 158.7 kB / 0.5109 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008758/0.3815, allocations: 0.6888 MB / 0.5116 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005784/0.3821, allocations: 457.9 kB / 0.512 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003535/0.3824, allocations: 288.3 kB / 0.5123 GB, free: 1.625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003858/0.3828, allocations: 294.8 kB / 0.5125 GB, free: 1.492 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.417e-05/0.3829, allocations: 45.03 kB / 0.5126 GB, free: 1.492 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.706e-05/0.383, allocations: 47.16 kB / 0.5126 GB, free: 1.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000153/0.3832, allocations: 152.1 kB / 0.5128 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002411/0.3834, allocations: 263.8 kB / 0.513 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007389/0.3842, allocations: 0.5975 MB / 0.5136 GB, free: 1.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3842, allocations: 5.156 kB / 0.5136 GB, free: 1.016 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3842, allocations: 0 / 0.5136 GB, free: 1.016 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.739e-06/0.3842, allocations: 0 / 0.5136 GB, free: 1.016 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001343/0.3856, allocations: 0.7982 MB / 0.5144 GB, free: 416 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.3856, allocations: 18.02 kB / 0.5144 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.485e-05/0.3857, allocations: 79.33 kB / 0.5145 GB, free: 344 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.278e-05/0.3858, allocations: 55.3 kB / 0.5145 GB, free: 316 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007412/0.3865, allocations: 472.5 kB / 0.515 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.498e-05/0.3866, allocations: 60.47 kB / 0.5151 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.54e-05/0.3867, allocations: 48 kB / 0.5151 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008174/0.3876, allocations: 0.4976 MB / 0.5156 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/0.3876, allocations: 1.922 kB / 0.5156 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.998e-05/0.3876, allocations: 21 kB / 0.5156 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/0.3877, allocations: 10.53 kB / 0.5156 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006668/0.3883, allocations: 345 kB / 0.5159 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00243/0.3908, allocations: 1.964 MB / 0.5179 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004747/0.3913, allocations: 226.8 kB / 0.5181 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000236/0.3915, allocations: 101.7 kB / 0.5182 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.3915, allocations: 2.469 kB / 0.5182 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/0.3916, allocations: 33.81 kB / 0.5182 GB, free: 13.76 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.693e-06/0.3916, allocations: 0 / 0.5182 GB, free: 13.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001754/0.3933, allocations: 0.8556 MB / 0.519 GB, free: 13.17 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.253e-05/0.3934, allocations: 105.9 kB / 0.5191 GB, free: 13.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003466/0.3938, allocations: 331.5 kB / 0.5195 GB, free: 12.86 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.3938, allocations: 30.8 kB / 0.5195 GB, free: 12.83 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001735/0.394, allocations: 277.7 kB / 0.5198 GB, free: 12.6 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.727e-05/0.394, allocations: 81.8 kB / 0.5198 GB, free: 12.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.3942, allocations: 75.41 kB / 0.5199 GB, free: 12.49 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3943, allocations: 346.2 kB / 0.5202 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002048/0.3945, allocations: 83.02 kB / 0.5203 GB, free: 12.13 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002801/0.3948, allocations: 217.3 kB / 0.5205 GB, free: 11.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.396, allocations: 0.5531 MB / 0.5211 GB, free: 11.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.396, allocations: 5.25 kB / 0.5211 GB, free: 11.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008422/0.3968, allocations: 423.6 kB / 0.5215 GB, free: 11.35 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.3969, allocations: 7.281 kB / 0.5215 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.3969, allocations: 4.031 kB / 0.5215 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000314/0.3972, allocations: 77.22 kB / 0.5216 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002457/0.3975, allocations: 65.39 kB / 0.5216 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001936/0.3994, allocations: 1.933 MB / 0.5235 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002261/0.3996, allocations: 14.44 kB / 0.5235 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.856e-05/0.3997, allocations: 18.73 kB / 0.5235 GB, free: 9.566 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002723/0.4, allocations: 195.6 kB / 0.5237 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.901e-05/0.4001, allocations: 39.77 kB / 0.5238 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.123e-05/0.4001, allocations: 41.58 kB / 0.5238 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.4001, allocations: 3.156 kB / 0.5238 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.4001, allocations: 1.375 kB / 0.5238 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.4002, allocations: 2.828 kB / 0.5238 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.4014, allocations: 0.7755 MB / 0.5246 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.4014, allocations: 1.188 kB / 0.5246 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002387/0.4017, allocations: 46.05 kB / 0.5246 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.009e-05/0.4017, allocations: 22.72 kB / 0.5246 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.4018, allocations: 7.375 kB / 0.5246 GB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009261/0.4027, allocations: 1.385 MB / 0.526 GB, free: 7.367 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.4027, allocations: 4.641 kB / 0.526 GB, free: 7.363 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007126/0.4034, allocations: 0.5062 MB / 0.5265 GB, free: 7.016 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.4036, allocations: 113.5 kB / 0.5266 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.942e-05/0.4036, allocations: 15.44 kB / 0.5266 GB, free: 6.891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.4038, allocations: 10.19 kB / 0.5266 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.761e-05/0.4039, allocations: 22.28 kB / 0.5266 GB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.4039, allocations: 6.062 kB / 0.5267 GB, free: 6.879 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002339/0.4042, allocations: 228.7 kB / 0.5269 GB, free: 6.758 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4042, allocations: 0 / 0.5269 GB, free: 6.758 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005371/0.4047, allocations: 94.31 kB / 0.527 GB, free: 6.742 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001011/0.4057, allocations: 1.047 MB / 0.528 GB, free: 5.863 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008271/0.4066, allocations: 375.5 kB / 0.5283 GB, free: 5.656 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.4066, allocations: 1.5 kB / 0.5283 GB, free: 5.656 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003978/0.407, allocations: 213.1 kB / 0.5285 GB, free: 5.516 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007121/0.4077, allocations: 108.3 kB / 0.5287 GB, free: 5.477 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005477/0.4132, allocations: 3.69 MB / 0.5323 GB, free: 2.934 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005683/0.4138, allocations: 0.8487 MB / 0.5331 GB, free: 2.215 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002552/0.4141, allocations: 51.77 kB / 0.5331 GB, free: 2.199 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002113/0.4143, allocations: 142.9 kB / 0.5333 GB, free: 2.09 MB / 398.1 MB Notification: Performance of SimCode: time 1.593e-06/0.4143, allocations: 0.9688 kB / 0.5333 GB, free: 2.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03396/0.4483, allocations: 8.513 MB / 0.5416 GB, free: 14.76 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.47, allocations: 5.125 kB / 0.5416 GB, free: 14.75 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches