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.001836/0.001836, allocations: 115.6 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.002291/0.002291, allocations: 213.4 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.442/1.442, allocations: 230.6 MB / 257.5 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.1807/0.1807, allocations: 38.53 MB / 352.5 MB, free: 12.52 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.002118/0.002118, allocations: 71.89 kB / 492.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.326, allocations: 62.48 MB / 0.542 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007218/0.3332, allocations: 5.434 MB / 0.5473 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00272/0.3359, allocations: 1.624 MB / 0.5489 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002194/0.3361, allocations: 24.62 kB / 0.5489 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003895/0.3365, allocations: 128.8 kB / 0.549 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006978/0.3372, allocations: 315.7 kB / 0.5493 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003791/0.3376, allocations: 161.3 kB / 0.5495 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009335/0.3385, allocations: 0.7063 MB / 0.5502 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004747/0.339, allocations: 331.5 kB / 0.5505 GB, free: 9.738 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004313/0.3394, allocations: 303.5 kB / 0.5508 GB, free: 9.566 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004494/0.3399, allocations: 297.5 kB / 0.5511 GB, free: 9.383 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.027e-05/0.3399, allocations: 50.22 kB / 0.5511 GB, free: 9.379 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.432e-05/0.34, allocations: 47.62 kB / 0.5512 GB, free: 9.379 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.3402, allocations: 155.9 kB / 0.5513 GB, free: 9.266 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002675/0.3405, allocations: 267.6 kB / 0.5516 GB, free: 9.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006671/0.3411, allocations: 0.5924 MB / 0.5522 GB, free: 8.668 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.494e-05/0.3411, allocations: 11.92 kB / 0.5522 GB, free: 8.656 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3411, allocations: 1.094 kB / 0.5522 GB, free: 8.656 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.3412, allocations: 0 / 0.5522 GB, free: 8.656 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.001338/0.3425, allocations: 0.7171 MB / 0.5529 GB, free: 8.086 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.3425, allocations: 13.42 kB / 0.5529 GB, free: 8.082 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.894e-05/0.3426, allocations: 77.69 kB / 0.553 GB, free: 8.012 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.462e-05/0.3427, allocations: 59.44 kB / 0.553 GB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007443/0.3435, allocations: 403.7 kB / 0.5534 GB, free: 7.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/0.3436, allocations: 91.31 kB / 0.5535 GB, free: 7.574 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.921e-05/0.3437, allocations: 40 kB / 0.5535 GB, free: 7.562 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008125/0.3445, allocations: 0.5027 MB / 0.554 GB, free: 7.207 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.046e-05/0.3445, allocations: 5.625 kB / 0.554 GB, free: 7.203 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.976e-05/0.3445, allocations: 16.75 kB / 0.554 GB, free: 7.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.3445, allocations: 14.11 kB / 0.554 GB, free: 7.188 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006323/0.3452, allocations: 346.1 kB / 0.5544 GB, free: 7.016 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002462/0.3476, allocations: 1.882 MB / 0.5562 GB, free: 5.352 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004292/0.3481, allocations: 218.9 kB / 0.5564 GB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002025/0.3483, allocations: 94.06 kB / 0.5565 GB, free: 5.137 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.3483, allocations: 6.859 kB / 0.5565 GB, free: 5.133 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.795e-05/0.3483, allocations: 36.69 kB / 0.5566 GB, free: 5.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.563e-06/0.3483, allocations: 0 / 0.5566 GB, free: 5.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001653/0.35, allocations: 0.7823 MB / 0.5573 GB, free: 4.473 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.269e-05/0.3501, allocations: 110.8 kB / 0.5574 GB, free: 4.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003721/0.3504, allocations: 329.9 kB / 0.5577 GB, free: 4.008 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.597e-05/0.3505, allocations: 33.7 kB / 0.5578 GB, free: 3.969 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001998/0.3507, allocations: 280.2 kB / 0.558 GB, free: 3.688 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.834e-05/0.3507, allocations: 75.38 kB / 0.5581 GB, free: 3.613 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.3508, allocations: 73.64 kB / 0.5582 GB, free: 3.535 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.351, allocations: 338.8 kB / 0.5585 GB, free: 3.195 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.3512, allocations: 91.72 kB / 0.5586 GB, free: 3.105 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003179/0.3515, allocations: 213 kB / 0.5588 GB, free: 2.836 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001202/0.3527, allocations: 495.4 kB / 0.5593 GB, free: 2.293 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3527, allocations: 0 / 0.5593 GB, free: 2.293 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000869/0.3536, allocations: 413.7 kB / 0.5597 GB, free: 1.879 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.3536, allocations: 14.64 kB / 0.5597 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.3536, allocations: 7.938 kB / 0.5597 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003161/0.3539, allocations: 85.16 kB / 0.5598 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.3542, allocations: 63.91 kB / 0.5598 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002155/0.3563, allocations: 1.82 MB / 0.5616 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002186/0.3565, allocations: 19.98 kB / 0.5616 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.512e-05/0.3566, allocations: 12.06 kB / 0.5616 GB, free: 15.75 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.0002486/0.3568, allocations: 201.7 kB / 0.5618 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.963e-05/0.3569, allocations: 39.7 kB / 0.5619 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.007e-05/0.357, allocations: 35.25 kB / 0.5619 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.357, allocations: 7.984 kB / 0.5619 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.357, allocations: 0 / 0.5619 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.357, allocations: 4 kB / 0.5619 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001292/0.3583, allocations: 0.7517 MB / 0.5626 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.3583, allocations: 0 / 0.5626 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002439/0.3585, allocations: 43.97 kB / 0.5627 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.106e-05/0.3586, allocations: 20.84 kB / 0.5627 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.3586, allocations: 8 kB / 0.5627 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.3597, allocations: 1.287 MB / 0.564 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.3597, allocations: 4.031 kB / 0.564 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007806/0.3605, allocations: 0.5002 MB / 0.5645 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.3606, allocations: 51.78 kB / 0.5645 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.152e-05/0.3606, allocations: 8 kB / 0.5645 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.3608, allocations: 4 kB / 0.5645 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.74e-05/0.3609, allocations: 23.89 kB / 0.5645 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.3609, allocations: 8 kB / 0.5645 GB, free: 12.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000268/0.3612, allocations: 231.2 kB / 0.5648 GB, free: 12.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3612, allocations: 0 / 0.5648 GB, free: 12.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005481/0.3617, allocations: 95.94 kB / 0.5649 GB, free: 12.23 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.001153/0.3629, allocations: 1.034 MB / 0.5659 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008236/0.3637, allocations: 363 kB / 0.5662 GB, free: 10.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3637, allocations: 4 kB / 0.5662 GB, free: 10.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003785/0.3641, allocations: 210.6 kB / 0.5664 GB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006945/0.3648, allocations: 108 kB / 0.5665 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005601/0.3704, allocations: 3.701 MB / 0.5701 GB, free: 6.543 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005949/0.371, allocations: 0.8504 MB / 0.571 GB, free: 5.664 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001892/0.3712, allocations: 47.27 kB / 0.571 GB, free: 5.621 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/0.3714, allocations: 135.4 kB / 0.5711 GB, free: 5.488 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3714, allocations: 0 / 0.5711 GB, free: 5.488 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04621/0.4176, allocations: 8.849 MB / 0.5798 GB, free: 12.81 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/13.58, allocations: 0.5 kB / 0.5798 GB, free: 12.81 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.42586687207222]