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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 214.3 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.475/1.475, allocations: 230.6 MB / 257.5 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1835/0.1835, allocations: 38.52 MB / 352.4 MB, free: 12.57 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 67.89 kB / 492.5 MB, free: 4.891 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.322, allocations: 62.47 MB / 0.542 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.008032/0.33, allocations: 5.438 MB / 0.5473 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003545/0.3335, allocations: 1.62 MB / 0.5489 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004149/0.334, allocations: 22.88 kB / 0.5489 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005451/0.3345, allocations: 129.9 kB / 0.549 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009507/0.3355, allocations: 319.2 kB / 0.5493 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004925/0.3359, allocations: 157.6 kB / 0.5495 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001163/0.3371, allocations: 0.7063 MB / 0.5502 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005581/0.3377, allocations: 335.2 kB / 0.5505 GB, free: 9.734 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00052/0.3382, allocations: 304.9 kB / 0.5508 GB, free: 9.562 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00049/0.3387, allocations: 293.8 kB / 0.5511 GB, free: 9.383 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.286e-05/0.3387, allocations: 49.28 kB / 0.5511 GB, free: 9.379 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.489e-05/0.3388, allocations: 50.03 kB / 0.5512 GB, free: 9.375 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000188/0.339, allocations: 156.7 kB / 0.5513 GB, free: 9.262 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002892/0.3393, allocations: 260.2 kB / 0.5516 GB, free: 9.094 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008117/0.3401, allocations: 0.6001 MB / 0.5522 GB, free: 8.664 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.3401, allocations: 0.9688 kB / 0.5522 GB, free: 8.664 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3401, allocations: 0 / 0.5522 GB, free: 8.664 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.3402, allocations: 3.984 kB / 0.5522 GB, free: 8.66 MB / 398.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.001495/0.3416, allocations: 0.7162 MB / 0.5529 GB, free: 8.094 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.3417, allocations: 17.97 kB / 0.5529 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001007/0.3418, allocations: 80.31 kB / 0.553 GB, free: 8.012 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001643/0.342, allocations: 63.12 kB / 0.553 GB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007771/0.3427, allocations: 404.7 kB / 0.5534 GB, free: 7.656 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.3429, allocations: 87.78 kB / 0.5535 GB, free: 7.574 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.266e-05/0.3429, allocations: 44.5 kB / 0.5535 GB, free: 7.559 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008864/0.3438, allocations: 0.4974 MB / 0.554 GB, free: 7.207 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.556e-05/0.3439, allocations: 9.297 kB / 0.554 GB, free: 7.199 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.339e-05/0.3439, allocations: 17.69 kB / 0.554 GB, free: 7.188 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.3439, allocations: 9.531 kB / 0.554 GB, free: 7.188 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006994/0.3446, allocations: 342.4 kB / 0.5544 GB, free: 7.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002667/0.3473, allocations: 1.89 MB / 0.5562 GB, free: 5.348 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004703/0.3478, allocations: 211.2 kB / 0.5564 GB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002111/0.348, allocations: 94.59 kB / 0.5565 GB, free: 5.137 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.348, allocations: 7.156 kB / 0.5565 GB, free: 5.133 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.348, allocations: 32.81 kB / 0.5565 GB, free: 5.094 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.974e-06/0.348, allocations: 0 / 0.5565 GB, free: 5.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001824/0.3499, allocations: 0.7875 MB / 0.5573 GB, free: 4.508 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.425e-05/0.3499, allocations: 106.8 kB / 0.5574 GB, free: 4.379 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003864/0.3503, allocations: 337.9 kB / 0.5577 GB, free: 4.039 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.3504, allocations: 33.7 kB / 0.5578 GB, free: 4 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002307/0.3506, allocations: 276.2 kB / 0.558 GB, free: 3.723 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.429e-05/0.3507, allocations: 71.39 kB / 0.5581 GB, free: 3.652 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.3508, allocations: 69.64 kB / 0.5582 GB, free: 3.578 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.351, allocations: 342.8 kB / 0.5585 GB, free: 3.234 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002066/0.3512, allocations: 87.72 kB / 0.5586 GB, free: 3.148 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003091/0.3515, allocations: 217.1 kB / 0.5588 GB, free: 2.875 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001244/0.3527, allocations: 0.4916 MB / 0.5593 GB, free: 2.324 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3527, allocations: 0 / 0.5593 GB, free: 2.324 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009177/0.3537, allocations: 409.7 kB / 0.5597 GB, free: 1.914 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.142e-05/0.3537, allocations: 11.98 kB / 0.5597 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.3537, allocations: 4 kB / 0.5597 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000351/0.354, allocations: 81.17 kB / 0.5598 GB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002527/0.3543, allocations: 67.91 kB / 0.5598 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002256/0.3566, allocations: 1.828 MB / 0.5616 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002617/0.3568, allocations: 15.98 kB / 0.5616 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.573e-05/0.3568, allocations: 16.06 kB / 0.5616 GB, free: 15.78 MB / 414.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.0002869/0.3571, allocations: 193.7 kB / 0.5618 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.929e-05/0.3572, allocations: 39.7 kB / 0.5619 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.477e-05/0.3573, allocations: 39.25 kB / 0.5619 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3573, allocations: 4 kB / 0.5619 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.3573, allocations: 3.984 kB / 0.5619 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3573, allocations: 0 / 0.5619 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001347/0.3587, allocations: 0.7551 MB / 0.5626 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.3587, allocations: 3.984 kB / 0.5626 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002519/0.3589, allocations: 39.97 kB / 0.5627 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.631e-05/0.359, allocations: 24.84 kB / 0.5627 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.359, allocations: 4.031 kB / 0.5627 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001052/0.3601, allocations: 1.287 MB / 0.564 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3601, allocations: 0 / 0.564 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007861/0.3609, allocations: 0.5037 MB / 0.5645 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.361, allocations: 47.78 kB / 0.5645 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.171e-05/0.361, allocations: 8 kB / 0.5645 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.3612, allocations: 8 kB / 0.5645 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.975e-05/0.3613, allocations: 19.95 kB / 0.5645 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.3613, allocations: 11.94 kB / 0.5645 GB, free: 12.58 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002776/0.3616, allocations: 227.2 kB / 0.5648 GB, free: 12.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3616, allocations: 4 kB / 0.5648 GB, free: 12.36 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005865/0.3622, allocations: 95.92 kB / 0.5649 GB, free: 12.26 MB / 414.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.00116/0.3633, allocations: 1.034 MB / 0.5659 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008134/0.3641, allocations: 362.9 kB / 0.5662 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3641, allocations: 0 / 0.5662 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003678/0.3645, allocations: 210.6 kB / 0.5664 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007142/0.3652, allocations: 121.6 kB / 0.5665 GB, free: 10.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00591/0.3711, allocations: 3.7 MB / 0.5701 GB, free: 6.578 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006073/0.3717, allocations: 0.8464 MB / 0.571 GB, free: 5.703 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002122/0.372, allocations: 55.25 kB / 0.571 GB, free: 5.652 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002013/0.3722, allocations: 135.4 kB / 0.5712 GB, free: 5.52 MB / 414.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3722, allocations: 4 kB / 0.5712 GB, free: 5.516 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05791/0.4301, allocations: 8.831 MB / 0.5798 GB, free: 12.85 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.89/13.32, allocations: 7.062 kB / 0.5798 GB, free: 12.85 MB / 430.1 MB " [Timeout remaining time 647] (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) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv failed! Error: Could not read variable efficiency.eta in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv. Warning: Get data of variable efficiency.eta from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv failed! Error: Could not read variable power.p in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv. Warning: Get data of variable power.p from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.298317144006432]