Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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.0008183/0.0008183, allocations: 92.33 kB / 20.95 MB, free: 3.477 MB / 18.57 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.0008922/0.0008922, allocations: 161.3 kB / 24.26 MB, free: 176 kB / 18.57 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 0.8826/0.8826, allocations: 177.2 MB / 204.6 MB, free: 5.574 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2183/0.2183, allocations: 29.42 MB / 290.5 MB, free: 2.43 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 368.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.35e-05/2.477e-05, allocations: 6.312 kB / 368.4 MB, free: 11.81 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.004573/0.004598, allocations: 5.083 MB / 373.5 MB, free: 6.691 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001947/0.006545, allocations: 1.495 MB / 375 MB, free: 5.191 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003068/0.006852, allocations: 27.81 kB / 375 MB, free: 5.164 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003636/0.007215, allocations: 127 kB / 375.1 MB, free: 5.039 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007232/0.007939, allocations: 325.8 kB / 375.4 MB, free: 4.719 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003258/0.008264, allocations: 155.7 kB / 375.6 MB, free: 4.566 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007472/0.009012, allocations: 0.712 MB / 376.3 MB, free: 3.852 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003622/0.009374, allocations: 344.3 kB / 376.6 MB, free: 3.516 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004316/0.009805, allocations: 418.9 kB / 377 MB, free: 3.105 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002846/0.01009, allocations: 247.2 kB / 377.3 MB, free: 2.863 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.628e-05/0.01014, allocations: 44 kB / 377.3 MB, free: 2.82 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.355e-05/0.01019, allocations: 52 kB / 377.4 MB, free: 2.77 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.01029, allocations: 159.5 kB / 377.5 MB, free: 2.613 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.01043, allocations: 183.6 kB / 377.7 MB, free: 2.434 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004909/0.01092, allocations: 0.5958 MB / 378.3 MB, free: 1.836 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.01093, allocations: 0 / 378.3 MB, free: 1.836 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.01093, allocations: 0 / 378.3 MB, free: 1.836 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.01094, allocations: 0 / 378.3 MB, free: 1.836 MB / 346.7 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.00113/0.01207, allocations: 0.7174 MB / 379 MB, free: 1.082 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.01211, allocations: 11.98 kB / 379 MB, free: 1.07 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.351e-05/0.01219, allocations: 86.7 kB / 379.1 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.0123, allocations: 88.61 kB / 379.2 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000508/0.01281, allocations: 412.8 kB / 379.6 MB, free: 476 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.584e-05/0.01289, allocations: 88.95 kB / 379.7 MB, free: 376 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.392e-05/0.01294, allocations: 51.89 kB / 379.8 MB, free: 324 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000529/0.01347, allocations: 0.5047 MB / 380.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.01349, allocations: 7.984 kB / 380.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.725e-05/0.01351, allocations: 20 kB / 380.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.01352, allocations: 8 kB / 380.3 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004041/0.01393, allocations: 335.7 kB / 380.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.0155, allocations: 1.826 MB / 382.4 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003017/0.0158, allocations: 215.1 kB / 382.7 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.01592, allocations: 90.66 kB / 382.7 MB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/0.01594, allocations: 4 kB / 382.8 MB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.01597, allocations: 46.5 kB / 382.8 MB, free: 13.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.583e-06/0.01597, allocations: 0 / 382.8 MB, free: 13.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001117/0.01708, allocations: 0.7747 MB / 383.6 MB, free: 12.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/0.01713, allocations: 110.8 kB / 383.7 MB, free: 12.15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.01738, allocations: 345.5 kB / 384 MB, free: 11.81 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.0174, allocations: 29.95 kB / 384 MB, free: 11.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.01754, allocations: 276.2 kB / 384.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.885e-05/0.01759, allocations: 83.25 kB / 384.4 MB, free: 11.42 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.566e-05/0.01765, allocations: 69.66 kB / 384.5 MB, free: 11.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.981e-05/0.01774, allocations: 342.8 kB / 384.8 MB, free: 11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.01786, allocations: 87.89 kB / 384.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000166/0.01802, allocations: 217.1 kB / 385.1 MB, free: 10.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006856/0.01871, allocations: 497.9 kB / 385.6 MB, free: 10.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.01871, allocations: 0 / 385.6 MB, free: 10.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005097/0.01922, allocations: 430 kB / 386 MB, free: 9.668 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.01924, allocations: 8 kB / 386 MB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.006e-06/0.01924, allocations: 7.938 kB / 386 MB, free: 9.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002408/0.01948, allocations: 92.97 kB / 386.1 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/0.01963, allocations: 67.91 kB / 386.2 MB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001431/0.02106, allocations: 1.815 MB / 388 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.02118, allocations: 16 kB / 388 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.0212, allocations: 16 kB / 388 MB, free: 7.531 MB / 362.7 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.0001452/0.02135, allocations: 189.7 kB / 388.2 MB, free: 7.336 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.379e-05/0.0214, allocations: 47.7 kB / 388.3 MB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.074e-05/0.02145, allocations: 43.3 kB / 388.3 MB, free: 7.246 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.02146, allocations: 8 kB / 388.3 MB, free: 7.238 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.02146, allocations: 3.938 kB / 388.3 MB, free: 7.234 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.02146, allocations: 4 kB / 388.3 MB, free: 7.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007229/0.02219, allocations: 0.6709 MB / 389 MB, free: 6.504 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.02219, allocations: 0 / 389 MB, free: 6.504 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000136/0.02233, allocations: 47.91 kB / 389 MB, free: 6.457 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.284e-05/0.02241, allocations: 20.84 kB / 389.1 MB, free: 6.434 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.02243, allocations: 12.03 kB / 389.1 MB, free: 6.422 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006776/0.0231, allocations: 1.279 MB / 390.3 MB, free: 5.023 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.0231, allocations: 0 / 390.3 MB, free: 5.023 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004607/0.02357, allocations: 0.5118 MB / 390.9 MB, free: 4.488 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.916e-05/0.02362, allocations: 51.89 kB / 390.9 MB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/0.02364, allocations: 0 / 390.9 MB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.02375, allocations: 15.98 kB / 390.9 MB, free: 4.422 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.934e-05/0.02381, allocations: 15.97 kB / 390.9 MB, free: 4.406 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.02382, allocations: 8 kB / 390.9 MB, free: 4.398 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001562/0.02397, allocations: 231.2 kB / 391.2 MB, free: 4.172 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02397, allocations: 0 / 391.2 MB, free: 4.172 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003311/0.0243, allocations: 88 kB / 391.3 MB, free: 4.086 MB / 362.7 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.0006476/0.02495, allocations: 1.046 MB / 392.3 MB, free: 3.004 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004867/0.02544, allocations: 367.2 kB / 392.7 MB, free: 2.633 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.02544, allocations: 0 / 392.7 MB, free: 2.633 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002044/0.02564, allocations: 215.6 kB / 392.9 MB, free: 2.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004382/0.02608, allocations: 115.8 kB / 393 MB, free: 2.305 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003447/0.02953, allocations: 3.642 MB / 396.6 MB, free: 14.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001827/0.02971, allocations: 239.8 kB / 396.9 MB, free: 14.19 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001305/0.02984, allocations: 55.25 kB / 396.9 MB, free: 14.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.02998, allocations: 140.5 kB / 397 MB, free: 14 MB / 378.7 MB Notification: Performance of SimCode: time 8.11e-07/0.02998, allocations: 0 / 397 MB, free: 14 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02455/0.05453, allocations: 9.547 MB / 406.6 MB, free: 4.629 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.905/7.96, allocations: 4.203 kB / 406.6 MB, free: 4.629 MB / 378.7 MB " [Timeout remaining time 652] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_OMSimulator.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_OMSimulator.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_OMSimulator.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_OMSimulator_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_OMSimulator.pipe 2>&1) [Timeout 52.5] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_fmpy.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_fmpy.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_fmpy.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_fmpy_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.87174691259861]