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.001852/0.001852, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002495/0.002495, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.507/1.507, allocations: 230.6 MB / 258.3 MB, free: 8.02 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.1846/0.1846, allocations: 38.52 MB / 353.2 MB, free: 12.54 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="cs",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.002013/0.002013, allocations: 66.55 kB / 493.3 MB, free: 4.906 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3288, allocations: 62.48 MB / 0.5428 GB, free: 452 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007433/0.3362, allocations: 5.438 MB / 0.5481 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003275/0.3395, allocations: 1.62 MB / 0.5497 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003391/0.3398, allocations: 23.59 kB / 0.5497 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004108/0.3403, allocations: 129.8 kB / 0.5498 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008143/0.3411, allocations: 323.6 kB / 0.5501 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004605/0.3415, allocations: 158.1 kB / 0.5503 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001284/0.3428, allocations: 0.7018 MB / 0.5509 GB, free: 9.977 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005682/0.3434, allocations: 339.4 kB / 0.5513 GB, free: 9.742 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005892/0.344, allocations: 299.1 kB / 0.5516 GB, free: 9.574 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004944/0.3445, allocations: 302.7 kB / 0.5518 GB, free: 9.387 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.197e-05/0.3445, allocations: 50.41 kB / 0.5519 GB, free: 9.383 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.864e-05/0.3446, allocations: 45.94 kB / 0.5519 GB, free: 9.383 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001798/0.3448, allocations: 153.2 kB / 0.5521 GB, free: 9.273 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002951/0.3451, allocations: 263.8 kB / 0.5523 GB, free: 9.102 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008192/0.3459, allocations: 0.5995 MB / 0.5529 GB, free: 8.672 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3459, allocations: 0.875 kB / 0.5529 GB, free: 8.672 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3459, allocations: 0 / 0.5529 GB, free: 8.672 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.346, allocations: 0 / 0.5529 GB, free: 8.672 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.001441/0.3474, allocations: 0.7161 MB / 0.5536 GB, free: 8.105 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.3474, allocations: 13.67 kB / 0.5536 GB, free: 8.102 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.172e-05/0.3475, allocations: 11.44 kB / 0.5536 GB, free: 8.102 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.402e-05/0.3476, allocations: 85.7 kB / 0.5537 GB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.3477, allocations: 62.62 kB / 0.5538 GB, free: 7.988 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007727/0.3484, allocations: 403.2 kB / 0.5542 GB, free: 7.664 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.3486, allocations: 88.11 kB / 0.5543 GB, free: 7.586 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.269e-05/0.3487, allocations: 44.16 kB / 0.5543 GB, free: 7.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009806/0.3496, allocations: 0.5021 MB / 0.5548 GB, free: 7.215 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.348e-05/0.3497, allocations: 5.375 kB / 0.5548 GB, free: 7.211 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.787e-05/0.3497, allocations: 25.42 kB / 0.5548 GB, free: 7.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.3497, allocations: 9.906 kB / 0.5548 GB, free: 7.191 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006906/0.3504, allocations: 334.7 kB / 0.5551 GB, free: 7.031 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002545/0.353, allocations: 1.897 MB / 0.557 GB, free: 5.352 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004757/0.3534, allocations: 211.5 kB / 0.5572 GB, free: 5.203 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002019/0.3536, allocations: 90.44 kB / 0.5573 GB, free: 5.145 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.3537, allocations: 2.812 kB / 0.5573 GB, free: 5.145 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.3537, allocations: 40.61 kB / 0.5573 GB, free: 5.098 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 2.154e-06/0.3537, allocations: 5.062 kB / 0.5573 GB, free: 5.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001769/0.3555, allocations: 0.7794 MB / 0.5581 GB, free: 4.512 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.023e-05/0.3555, allocations: 107.1 kB / 0.5582 GB, free: 4.383 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000371/0.3559, allocations: 337.6 kB / 0.5585 GB, free: 4.043 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.652e-05/0.3559, allocations: 29.7 kB / 0.5585 GB, free: 4.008 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.3561, allocations: 272.2 kB / 0.5588 GB, free: 3.734 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.124e-05/0.3562, allocations: 83.3 kB / 0.5589 GB, free: 3.652 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.3563, allocations: 69.64 kB / 0.559 GB, free: 3.578 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3565, allocations: 342.8 kB / 0.5593 GB, free: 3.234 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.3567, allocations: 87.73 kB / 0.5594 GB, free: 3.148 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003211/0.357, allocations: 225 kB / 0.5596 GB, free: 2.867 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001236/0.3582, allocations: 498.2 kB / 0.5601 GB, free: 2.324 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3582, allocations: 0 / 0.5601 GB, free: 2.324 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009002/0.3591, allocations: 410.1 kB / 0.5604 GB, free: 1.914 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3591, allocations: 8.062 kB / 0.5605 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.3592, allocations: 8 kB / 0.5605 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003333/0.3595, allocations: 72.8 kB / 0.5605 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002604/0.3598, allocations: 67.91 kB / 0.5606 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002147/0.3619, allocations: 1.831 MB / 0.5624 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002671/0.3622, allocations: 20.05 kB / 0.5624 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.606e-05/0.3622, allocations: 16 kB / 0.5624 GB, free: 15.79 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.0003238/0.3625, allocations: 189.7 kB / 0.5626 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.842e-05/0.3626, allocations: 39.7 kB / 0.5626 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.744e-05/0.3627, allocations: 43.25 kB / 0.5627 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3627, allocations: 7.938 kB / 0.5627 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3627, allocations: 0 / 0.5627 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.3627, allocations: 7.984 kB / 0.5627 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.3641, allocations: 0.7395 MB / 0.5634 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.3641, allocations: 0 / 0.5634 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002549/0.3643, allocations: 47.91 kB / 0.5635 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001/0.3644, allocations: 28.88 kB / 0.5635 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.3645, allocations: 0 / 0.5635 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/0.3656, allocations: 1.283 MB / 0.5647 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3656, allocations: 3.938 kB / 0.5647 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008352/0.3664, allocations: 0.508 MB / 0.5652 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001329/0.3666, allocations: 47.78 kB / 0.5653 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.681e-05/0.3666, allocations: 4 kB / 0.5653 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.3668, allocations: 8 kB / 0.5653 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.651e-05/0.3669, allocations: 19.97 kB / 0.5653 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.3669, allocations: 11.98 kB / 0.5653 GB, free: 12.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002848/0.3672, allocations: 231.1 kB / 0.5655 GB, free: 12.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3672, allocations: 0 / 0.5655 GB, free: 12.36 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005751/0.3678, allocations: 88 kB / 0.5656 GB, free: 12.28 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.001109/0.3689, allocations: 1.042 MB / 0.5666 GB, free: 11.2 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008076/0.3697, allocations: 358.6 kB / 0.567 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.3697, allocations: 3.938 kB / 0.567 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003753/0.3701, allocations: 215.4 kB / 0.5672 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.0007438/0.3708, allocations: 115.4 kB / 0.5673 GB, free: 10.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005557/0.3764, allocations: 3.704 MB / 0.5709 GB, free: 6.574 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005457/0.3769, allocations: 0.8465 MB / 0.5718 GB, free: 5.699 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000215/0.3771, allocations: 47.27 kB / 0.5718 GB, free: 5.656 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002036/0.3773, allocations: 139.4 kB / 0.5719 GB, free: 5.52 MB / 414.1 MB Notification: Performance of SimCode: time 1.472e-06/0.3774, allocations: 0 / 0.5719 GB, free: 5.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03519/0.4125, allocations: 8.858 MB / 0.5806 GB, free: 12.84 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.51/13.92, allocations: 14.17 kB / 0.5806 GB, free: 12.83 MB / 430.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.991967835987452]