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.0016/0.0016, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001951/0.001951, allocations: 210.7 kB / 23.72 MB, free: 4.391 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.465/1.465, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.1903/0.1903, allocations: 38.56 MB / 352.5 MB, free: 12.31 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.0021/0.0021, allocations: 63.91 kB / 492.5 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.3143, allocations: 62.47 MB / 0.5419 GB, free: 240 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007338/0.3217, allocations: 5.1 MB / 0.5469 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003138/0.3248, allocations: 1.493 MB / 0.5484 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004367/0.3253, allocations: 23.28 kB / 0.5484 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004804/0.3257, allocations: 117.4 kB / 0.5485 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009835/0.3267, allocations: 312.2 kB / 0.5488 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004677/0.3272, allocations: 161.8 kB / 0.549 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009102/0.3281, allocations: 0.7016 MB / 0.5496 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004798/0.3286, allocations: 327.5 kB / 0.55 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004653/0.329, allocations: 304.7 kB / 0.5503 GB, free: 9.902 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004428/0.3295, allocations: 273.8 kB / 0.5505 GB, free: 9.742 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.243e-05/0.3296, allocations: 49.28 kB / 0.5506 GB, free: 9.738 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.3297, allocations: 46.66 kB / 0.5506 GB, free: 9.738 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000204/0.3299, allocations: 161 kB / 0.5508 GB, free: 9.621 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003062/0.3302, allocations: 216.9 kB / 0.551 GB, free: 9.496 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008789/0.3311, allocations: 0.5966 MB / 0.5515 GB, free: 9.074 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.3311, allocations: 0 / 0.5515 GB, free: 9.074 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3311, allocations: 1.156 kB / 0.5515 GB, free: 9.074 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.3311, allocations: 0 / 0.5515 GB, free: 9.074 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.001694/0.3328, allocations: 0.7289 MB / 0.5523 GB, free: 8.492 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.527e-05/0.3328, allocations: 14.08 kB / 0.5523 GB, free: 8.488 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.333, allocations: 85.27 kB / 0.5524 GB, free: 8.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/0.3331, allocations: 59.41 kB / 0.5524 GB, free: 8.379 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008938/0.334, allocations: 391.8 kB / 0.5528 GB, free: 8.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/0.3341, allocations: 95.83 kB / 0.5529 GB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-05/0.3342, allocations: 40.06 kB / 0.5529 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009625/0.3352, allocations: 0.4968 MB / 0.5534 GB, free: 7.625 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.905e-05/0.3352, allocations: 6.125 kB / 0.5534 GB, free: 7.621 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.124e-05/0.3353, allocations: 16 kB / 0.5534 GB, free: 7.609 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.3353, allocations: 14.41 kB / 0.5534 GB, free: 7.605 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006717/0.3359, allocations: 337.8 kB / 0.5538 GB, free: 7.441 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002725/0.3387, allocations: 1.803 MB / 0.5555 GB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004745/0.3391, allocations: 211.8 kB / 0.5557 GB, free: 5.703 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002075/0.3393, allocations: 90.03 kB / 0.5558 GB, free: 5.645 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.118e-05/0.3394, allocations: 11.58 kB / 0.5558 GB, free: 5.637 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.3394, allocations: 37.81 kB / 0.5559 GB, free: 5.594 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.784e-06/0.3394, allocations: 0 / 0.5559 GB, free: 5.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001754/0.3412, allocations: 0.7903 MB / 0.5566 GB, free: 4.906 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.205e-05/0.3412, allocations: 106.8 kB / 0.5567 GB, free: 4.777 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004046/0.3416, allocations: 333.8 kB / 0.557 GB, free: 4.438 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.872e-05/0.3417, allocations: 29.7 kB / 0.5571 GB, free: 4.402 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000213/0.3419, allocations: 280.2 kB / 0.5573 GB, free: 4.121 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.61e-05/0.342, allocations: 87.27 kB / 0.5574 GB, free: 4.035 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.3421, allocations: 65.66 kB / 0.5575 GB, free: 3.965 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.3422, allocations: 346.8 kB / 0.5578 GB, free: 3.617 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002318/0.3425, allocations: 83.73 kB / 0.5579 GB, free: 3.535 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003116/0.3428, allocations: 217 kB / 0.5581 GB, free: 3.262 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.344, allocations: 489.6 kB / 0.5586 GB, free: 2.727 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.344, allocations: 4 kB / 0.5586 GB, free: 2.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008878/0.3449, allocations: 416.8 kB / 0.559 GB, free: 2.309 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.3449, allocations: 11.94 kB / 0.559 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.3449, allocations: 4 kB / 0.559 GB, free: 2.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000336/0.3452, allocations: 85.16 kB / 0.5591 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002475/0.3455, allocations: 59.91 kB / 0.5591 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002142/0.3476, allocations: 1.812 MB / 0.5609 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002473/0.3479, allocations: 24.02 kB / 0.5609 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.519e-05/0.3479, allocations: 12.16 kB / 0.5609 GB, free: 200 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.000288/0.3482, allocations: 204.8 kB / 0.5611 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.088e-05/0.3483, allocations: 35.75 kB / 0.5612 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.287e-05/0.3484, allocations: 39.25 kB / 0.5612 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.3484, allocations: 4 kB / 0.5612 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3484, allocations: 0 / 0.5612 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3484, allocations: 4 kB / 0.5612 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/0.3497, allocations: 0.674 MB / 0.5619 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3497, allocations: 0 / 0.5619 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002699/0.3499, allocations: 47.91 kB / 0.5619 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.521e-05/0.35, allocations: 28.78 kB / 0.5619 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.3501, allocations: 8 kB / 0.5619 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/0.3512, allocations: 1.275 MB / 0.5632 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.3512, allocations: 3.938 kB / 0.5632 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008491/0.352, allocations: 0.5048 MB / 0.5637 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.3522, allocations: 39.84 kB / 0.5637 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.429e-05/0.3522, allocations: 7.984 kB / 0.5637 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002138/0.3524, allocations: 12.12 kB / 0.5637 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.867e-05/0.3525, allocations: 27.86 kB / 0.5638 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.3525, allocations: 4 kB / 0.5638 GB, free: 13.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002801/0.3528, allocations: 231.2 kB / 0.564 GB, free: 12.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3528, allocations: 3.938 kB / 0.564 GB, free: 12.85 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000568/0.3534, allocations: 91.94 kB / 0.5641 GB, free: 12.76 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.001187/0.3545, allocations: 1.038 MB / 0.5651 GB, free: 11.69 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008026/0.3553, allocations: 369.9 kB / 0.5655 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3553, allocations: 0 / 0.5655 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003773/0.3557, allocations: 206.8 kB / 0.5656 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006908/0.3564, allocations: 103.9 kB / 0.5657 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005487/0.3619, allocations: 3.698 MB / 0.5694 GB, free: 7.082 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.3622, allocations: 239.7 kB / 0.5696 GB, free: 6.824 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001939/0.3624, allocations: 59.17 kB / 0.5696 GB, free: 6.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001967/0.3626, allocations: 139.4 kB / 0.5698 GB, free: 6.633 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3626, allocations: 0 / 0.5698 GB, free: 6.633 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04289/0.4055, allocations: 9.3 MB / 0.5789 GB, free: 13.55 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/13.63, allocations: 11.27 kB / 0.5789 GB, free: 13.54 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.607813101261854]