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.00185/0.00185, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002384/0.002384, allocations: 211.8 kB / 24.51 MB, free: 3.918 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.529/1.529, allocations: 230.6 MB / 258.3 MB, free: 7.766 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.1987/0.1987, allocations: 38.55 MB / 353.2 MB, free: 12.3 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.002342/0.002342, allocations: 75.88 kB / 493.3 MB, free: 4.691 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3257, allocations: 62.47 MB / 0.5427 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006877/0.3326, allocations: 5.089 MB / 0.5477 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002646/0.3352, allocations: 1.487 MB / 0.5491 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002616/0.3355, allocations: 24.19 kB / 0.5492 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00039/0.3359, allocations: 116.6 kB / 0.5493 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007355/0.3366, allocations: 324.5 kB / 0.5496 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003626/0.337, allocations: 153.5 kB / 0.5497 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008607/0.3378, allocations: 0.7015 MB / 0.5504 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004874/0.3383, allocations: 340 kB / 0.5507 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00043/0.3387, allocations: 304 kB / 0.551 GB, free: 9.898 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004535/0.3392, allocations: 297.3 kB / 0.5513 GB, free: 9.715 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.076e-05/0.3393, allocations: 46.09 kB / 0.5513 GB, free: 9.715 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.571e-05/0.3394, allocations: 46.78 kB / 0.5514 GB, free: 9.715 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.3395, allocations: 152.7 kB / 0.5515 GB, free: 9.605 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002545/0.3398, allocations: 220.5 kB / 0.5517 GB, free: 9.477 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006879/0.3405, allocations: 0.6047 MB / 0.5523 GB, free: 9.047 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.3405, allocations: 0 / 0.5523 GB, free: 9.047 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3405, allocations: 1.469 kB / 0.5523 GB, free: 9.047 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.3405, allocations: 0 / 0.5523 GB, free: 9.047 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.00134/0.3418, allocations: 0.7132 MB / 0.553 GB, free: 8.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.3419, allocations: 18.2 kB / 0.5531 GB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.98e-05/0.3419, allocations: 15.22 kB / 0.5531 GB, free: 8.469 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.342, allocations: 85.7 kB / 0.5531 GB, free: 8.391 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.3421, allocations: 58.59 kB / 0.5532 GB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007347/0.3428, allocations: 400.2 kB / 0.5536 GB, free: 8.039 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/0.3429, allocations: 87.33 kB / 0.5537 GB, free: 7.961 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.53e-05/0.343, allocations: 44.34 kB / 0.5537 GB, free: 7.945 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008559/0.3439, allocations: 0.5011 MB / 0.5542 GB, free: 7.594 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.539e-05/0.3439, allocations: 9.047 kB / 0.5542 GB, free: 7.586 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.182e-05/0.3439, allocations: 16.41 kB / 0.5542 GB, free: 7.574 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.344, allocations: 12 kB / 0.5542 GB, free: 7.574 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006463/0.3446, allocations: 337.5 kB / 0.5546 GB, free: 7.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002443/0.347, allocations: 1.804 MB / 0.5563 GB, free: 5.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000456/0.3475, allocations: 208.2 kB / 0.5565 GB, free: 5.676 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002027/0.3477, allocations: 89.78 kB / 0.5566 GB, free: 5.617 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.3477, allocations: 3.656 kB / 0.5566 GB, free: 5.617 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.3478, allocations: 33.84 kB / 0.5566 GB, free: 5.578 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.653e-06/0.3478, allocations: 0 / 0.5566 GB, free: 5.578 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001729/0.3495, allocations: 0.7974 MB / 0.5574 GB, free: 4.875 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.985e-05/0.3496, allocations: 106.8 kB / 0.5575 GB, free: 4.746 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003757/0.3499, allocations: 329.7 kB / 0.5578 GB, free: 4.414 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/0.35, allocations: 29.7 kB / 0.5579 GB, free: 4.379 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002005/0.3502, allocations: 276.4 kB / 0.5581 GB, free: 4.102 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.158e-05/0.3502, allocations: 79.38 kB / 0.5582 GB, free: 4.023 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.3503, allocations: 69.66 kB / 0.5583 GB, free: 3.949 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.3505, allocations: 346.8 kB / 0.5586 GB, free: 3.602 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002152/0.3507, allocations: 87.67 kB / 0.5587 GB, free: 3.516 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003111/0.351, allocations: 221 kB / 0.5589 GB, free: 3.238 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001229/0.3523, allocations: 0.4898 MB / 0.5594 GB, free: 2.691 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3523, allocations: 0 / 0.5594 GB, free: 2.691 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000901/0.3532, allocations: 410 kB / 0.5598 GB, free: 2.281 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.3532, allocations: 8 kB / 0.5598 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.3532, allocations: 4 kB / 0.5598 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003365/0.3535, allocations: 72.8 kB / 0.5598 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000264/0.3538, allocations: 67.91 kB / 0.5599 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002205/0.356, allocations: 1.824 MB / 0.5617 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002356/0.3562, allocations: 12 kB / 0.5617 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.837e-05/0.3562, allocations: 19.98 kB / 0.5617 GB, free: 168 kB / 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.0002595/0.3565, allocations: 196.2 kB / 0.5619 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.14e-05/0.3566, allocations: 39.7 kB / 0.5619 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.881e-05/0.3567, allocations: 39.25 kB / 0.562 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.3567, allocations: 4 kB / 0.562 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3567, allocations: 0 / 0.562 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.3567, allocations: 0 / 0.562 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.3579, allocations: 0.6778 MB / 0.5626 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3579, allocations: 4.031 kB / 0.5627 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002651/0.3582, allocations: 43.92 kB / 0.5627 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.706e-05/0.3583, allocations: 28.83 kB / 0.5627 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/0.3583, allocations: 8 kB / 0.5627 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/0.3593, allocations: 1.275 MB / 0.564 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3593, allocations: 4.125 kB / 0.564 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007858/0.3601, allocations: 0.5048 MB / 0.5645 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.3602, allocations: 47.78 kB / 0.5645 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.695e-05/0.3602, allocations: 8 kB / 0.5645 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.3604, allocations: 4 kB / 0.5645 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.134e-05/0.3605, allocations: 19.97 kB / 0.5645 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.3605, allocations: 8 kB / 0.5646 GB, free: 13.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002522/0.3608, allocations: 235.1 kB / 0.5648 GB, free: 12.83 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3608, allocations: 4 kB / 0.5648 GB, free: 12.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005303/0.3613, allocations: 84 kB / 0.5649 GB, free: 12.74 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.001105/0.3624, allocations: 1.041 MB / 0.5659 GB, free: 11.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007677/0.3632, allocations: 362.1 kB / 0.5662 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3632, allocations: 7.938 kB / 0.5662 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003781/0.3636, allocations: 211.7 kB / 0.5664 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007244/0.3643, allocations: 111.9 kB / 0.5665 GB, free: 10.97 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005514/0.3698, allocations: 3.705 MB / 0.5702 GB, free: 7.043 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002951/0.3701, allocations: 243.7 kB / 0.5704 GB, free: 6.781 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002182/0.3703, allocations: 51.27 kB / 0.5704 GB, free: 6.734 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002095/0.3705, allocations: 143.4 kB / 0.5706 GB, free: 6.594 MB / 414.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3705, allocations: 0 / 0.5706 GB, free: 6.594 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03606/0.4066, allocations: 9.029 MB / 0.5794 GB, free: 13.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.74/14.15, allocations: 11.38 kB / 0.5794 GB, free: 13.8 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: 17.338050605962053]