Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.000794/0.000794, allocations: 88.33 kB / 20.95 MB, free: 3.473 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.0008051/0.0008051, allocations: 161.7 kB / 24.27 MB, free: 164 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.8559/0.8559, allocations: 177.2 MB / 204.6 MB, free: 5.578 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.2126/0.2126, allocations: 29.42 MB / 290.5 MB, free: 2.445 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.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 368.4 MB, free: 11.81 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.276e-05/1.429e-05, allocations: 6.312 kB / 368.4 MB, free: 11.8 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.006307/0.006322, allocations: 6.08 MB / 374.5 MB, free: 5.688 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00315/0.009472, allocations: 2.508 MB / 377 MB, free: 3.172 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003388/0.009811, allocations: 39.69 kB / 377 MB, free: 3.133 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001136/0.01095, allocations: 330 kB / 377.3 MB, free: 2.809 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001008/0.01196, allocations: 0.6176 MB / 378 MB, free: 2.188 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004594/0.01241, allocations: 295.4 kB / 378.2 MB, free: 1.898 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001073/0.01349, allocations: 1.231 MB / 379.5 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007561/0.01424, allocations: 0.7947 MB / 380.3 MB, free: 15.87 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000684/0.01493, allocations: 0.6741 MB / 380.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005615/0.01549, allocations: 494.7 kB / 381.4 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001054/0.01559, allocations: 88 kB / 381.5 MB, free: 14.62 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000454/0.01605, allocations: 355.4 kB / 381.9 MB, free: 14.28 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002693/0.01632, allocations: 347.1 kB / 382.2 MB, free: 13.94 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002793/0.0166, allocations: 319.3 kB / 382.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00115/0.01775, allocations: 1.398 MB / 383.9 MB, free: 12.22 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.01775, allocations: 0 / 383.9 MB, free: 12.22 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.01775, allocations: 0 / 383.9 MB, free: 12.22 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.899e-06/0.01776, allocations: 0 / 383.9 MB, free: 12.22 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.001861/0.01962, allocations: 1.092 MB / 385 MB, free: 11.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.01966, allocations: 15.98 kB / 385 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001201/0.01978, allocations: 122.7 kB / 385.1 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005866/0.02036, allocations: 204.3 kB / 385.3 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008989/0.02126, allocations: 0.6688 MB / 386 MB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.312e-05/0.02136, allocations: 106 kB / 386.1 MB, free: 9.938 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.743e-05/0.02145, allocations: 71.92 kB / 386.2 MB, free: 9.867 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.02263, allocations: 0.953 MB / 387.1 MB, free: 8.875 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.02265, allocations: 4 kB / 387.1 MB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.317e-05/0.02271, allocations: 24 kB / 387.2 MB, free: 8.848 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.733e-05/0.02278, allocations: 61.28 kB / 387.2 MB, free: 8.785 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.02386, allocations: 0.7818 MB / 388 MB, free: 8.004 MB / 362.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003488/0.02734, allocations: 3.442 MB / 391.4 MB, free: 4.391 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008567/0.0282, allocations: 424.1 kB / 391.9 MB, free: 3.949 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003272/0.02853, allocations: 222.5 kB / 392.1 MB, free: 3.723 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.02856, allocations: 16 kB / 392.1 MB, free: 3.707 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.02858, allocations: 34.56 kB / 392.1 MB, free: 3.664 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 2.024e-06/0.02858, allocations: 4 kB / 392.1 MB, free: 3.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.006596/0.03518, allocations: 3.404 MB / 395.5 MB, free: 192 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.03522, allocations: 119.2 kB / 395.7 MB, free: 48 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004067/0.03563, allocations: 0.5416 MB / 396.2 MB, free: 15.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.911e-05/0.03565, allocations: 37.7 kB / 396.2 MB, free: 15.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.03582, allocations: 408 kB / 396.6 MB, free: 15.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.674e-05/0.03592, allocations: 190.4 kB / 396.8 MB, free: 14.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.03604, allocations: 134.6 kB / 396.9 MB, free: 14.72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.892e-05/0.03613, allocations: 370.8 kB / 397.3 MB, free: 14.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002853/0.03642, allocations: 285.9 kB / 397.6 MB, free: 14.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003708/0.03679, allocations: 0.5034 MB / 398.1 MB, free: 13.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009628/0.03775, allocations: 0.8493 MB / 398.9 MB, free: 12.51 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.03776, allocations: 0 / 398.9 MB, free: 12.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001745/0.0395, allocations: 1.35 MB / 400.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.03952, allocations: 14.59 kB / 400.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.03953, allocations: 12.31 kB / 400.3 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001218/0.04075, allocations: 0.6236 MB / 400.9 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002166/0.04096, allocations: 123.7 kB / 401.1 MB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006167/0.04713, allocations: 8.762 MB / 409.8 MB, free: 1.145 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002295/0.04736, allocations: 31.98 kB / 409.9 MB, free: 1.113 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.696e-05/0.0474, allocations: 32.17 kB / 409.9 MB, free: 1.082 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (3,8,88.9%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002393/0.04764, allocations: 313.5 kB / 410.2 MB, free: 0.7656 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.35e-05/0.04773, allocations: 83.69 kB / 410.3 MB, free: 0.6836 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001537/0.04927, allocations: 1.154 MB / 411.4 MB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.04927, allocations: 12 kB / 411.4 MB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.04928, allocations: 4 kB / 411.4 MB, free: 15.49 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.04928, allocations: 3.984 kB / 411.4 MB, free: 15.49 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002512/0.05179, allocations: 1.975 MB / 413.4 MB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.768e-06/0.0518, allocations: 4 kB / 413.4 MB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001557/0.05196, allocations: 63.89 kB / 413.5 MB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001122/0.05308, allocations: 0.6082 MB / 414.1 MB, free: 12.76 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.0531, allocations: 12 kB / 414.1 MB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005797/0.0589, allocations: 8.51 MB / 422.6 MB, free: 3.766 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.0589, allocations: 3.938 kB / 422.6 MB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001977/0.06088, allocations: 1.723 MB / 424.3 MB, free: 2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001549/0.06103, allocations: 123.5 kB / 424.5 MB, free: 1.879 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.654e-05/0.06108, allocations: 12 kB / 424.5 MB, free: 1.867 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001854/0.06127, allocations: 19.98 kB / 424.5 MB, free: 1.848 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/0.0614, allocations: 60.33 kB / 424.6 MB, free: 1.789 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.388e-05/0.06143, allocations: 19.98 kB / 424.6 MB, free: 1.77 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002873/0.06172, allocations: 370.8 kB / 424.9 MB, free: 1.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06172, allocations: 0 / 424.9 MB, free: 1.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006511/0.06237, allocations: 255.9 kB / 425.2 MB, free: 1.16 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * 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 (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,8,88.9%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00263/0.065, allocations: 2.301 MB / 427.5 MB, free: 14.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001399/0.0664, allocations: 1.329 MB / 428.8 MB, free: 13.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.0664, allocations: 0 / 428.8 MB, free: 13.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008419/0.06724, allocations: 0.9695 MB / 429.8 MB, free: 12.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005584/0.0678, allocations: 180 kB / 430 MB, free: 12.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007702/0.0755, allocations: 7.394 MB / 437.4 MB, free: 4.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.07586, allocations: 449 kB / 437.8 MB, free: 4.035 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002314/0.07609, allocations: 113.7 kB / 437.9 MB, free: 3.922 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002337/0.07632, allocations: 272.4 kB / 438.2 MB, free: 3.656 MB / 410.7 MB Notification: Performance of SimCode: time 1.242e-06/0.07632, allocations: 3.938 kB / 438.2 MB, free: 3.652 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1423/0.2187, allocations: 23.24 MB / 461.4 MB, free: 105.8 MB / 410.7 MB Notification: Building FMU for platform 'static' (1/1). Notification: Finished FMU for platform 'static' (1/1). Notification: Performance of buildModelFMU: Generate platform static: time 8.371/8.589, allocations: 4.781 kB / 461.4 MB, free: 105.8 MB / 410.7 MB " [Timeout remaining time 651] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_OMSimulator.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_OMSimulator.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_OMSimulator.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_OMSimulator_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_OMSimulator.pipe 2>&1) [Timeout 52.5] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_fmpy.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_fmpy.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_fmpy.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_fmpy_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.450455543003045]