Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.0009768/0.0009768, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001008/0.001008, allocations: 168.7 kB / 24.91 MB, free: 9.191 MB / 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.9913/0.9913, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] 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.2835/0.2835, allocations: 29.42 MB / 291.2 MB, free: 2.461 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.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: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.744e-06/1.744e-06, allocations: 0 / 316.8 MB, free: 4 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.249e-05/2.424e-05, allocations: 4.25 kB / 316.8 MB, free: 0 / 282.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.007795/0.00782, allocations: 5.97 MB / 322.8 MB, free: 10 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004967/0.01279, allocations: 2.658 MB / 325.5 MB, free: 7.336 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005413/0.01333, allocations: 43.69 kB / 325.5 MB, free: 7.293 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007935/0.01412, allocations: 318 kB / 325.8 MB, free: 6.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001037/0.01516, allocations: 0.6216 MB / 326.4 MB, free: 6.355 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005109/0.01567, allocations: 295.4 kB / 326.7 MB, free: 6.066 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009196/0.01659, allocations: 1.234 MB / 328 MB, free: 4.824 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006566/0.01725, allocations: 0.8165 MB / 328.8 MB, free: 4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000553/0.0178, allocations: 0.6704 MB / 329.5 MB, free: 3.328 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005517/0.01835, allocations: 486.7 kB / 329.9 MB, free: 2.852 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.01847, allocations: 88 kB / 330 MB, free: 2.766 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003579/0.01882, allocations: 351.4 kB / 330.4 MB, free: 2.422 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002277/0.01905, allocations: 351.1 kB / 330.7 MB, free: 2.078 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002857/0.01934, allocations: 319.3 kB / 331 MB, free: 1.766 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007586/0.0201, allocations: 0.9307 MB / 331.9 MB, free: 0.832 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.0201, allocations: 0 / 331.9 MB, free: 0.832 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.0201, allocations: 0 / 331.9 MB, free: 0.832 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.02011, allocations: 0 / 331.9 MB, free: 0.832 MB / 298.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.001281/0.02139, allocations: 1.035 MB / 333 MB, free: 15.77 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.02142, allocations: 15.98 kB / 333 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004206/0.02184, allocations: 168.8 kB / 333.2 MB, free: 15.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005894/0.02243, allocations: 0.5244 MB / 333.7 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.776e-05/0.02251, allocations: 102 kB / 333.8 MB, free: 14.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.674e-05/0.02259, allocations: 76.11 kB / 333.9 MB, free: 14.85 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005649/0.02315, allocations: 0.594 MB / 334.5 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.02317, allocations: 0 / 334.5 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.088e-05/0.02321, allocations: 28 kB / 334.5 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.709e-05/0.02328, allocations: 53.28 kB / 334.5 MB, free: 14.13 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003131/0.02359, allocations: 246.1 kB / 334.8 MB, free: 13.89 MB / 314.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.002636/0.02623, allocations: 2.768 MB / 337.5 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003277/0.02656, allocations: 268 kB / 337.8 MB, free: 10.68 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002044/0.02676, allocations: 103.2 kB / 337.9 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.427e-05/0.02679, allocations: 12.53 kB / 337.9 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.256e-05/0.02684, allocations: 42.5 kB / 338 MB, free: 10.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=37): time 2.044e-06/0.02684, allocations: 0 / 338 MB, free: 10.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=38): time 0.002221/0.02906, allocations: 1.075 MB / 339 MB, free: 9.387 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.02911, allocations: 110.8 kB / 339.1 MB, free: 9.254 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002706/0.02938, allocations: 410.9 kB / 339.5 MB, free: 8.836 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.02941, allocations: 33.7 kB / 339.6 MB, free: 8.797 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.02957, allocations: 364.9 kB / 339.9 MB, free: 8.438 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.8e-05/0.02965, allocations: 138.8 kB / 340.1 MB, free: 8.301 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.02975, allocations: 106.2 kB / 340.2 MB, free: 8.191 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.02986, allocations: 366.7 kB / 340.5 MB, free: 7.824 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.621e-05/0.02994, allocations: 53.28 kB / 340.6 MB, free: 7.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.03012, allocations: 269.9 kB / 340.8 MB, free: 7.41 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003061/0.03043, allocations: 389.5 kB / 341.2 MB, free: 6.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.03043, allocations: 4 kB / 341.2 MB, free: 6.926 MB / 314.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0006717/0.0311, allocations: 472 kB / 341.7 MB, free: 6.449 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.03112, allocations: 8 kB / 341.7 MB, free: 6.441 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.03113, allocations: 8 kB / 341.7 MB, free: 6.434 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005929/0.03173, allocations: 235 kB / 341.9 MB, free: 6.195 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002146/0.03194, allocations: 103.8 kB / 342 MB, free: 6.094 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002314/0.03426, allocations: 2.939 MB / 345 MB, free: 2.953 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001605/0.03442, allocations: 27.98 kB / 345 MB, free: 2.926 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.187e-05/0.03444, allocations: 20 kB / 345 MB, free: 2.906 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001395/0.03458, allocations: 156.4 kB / 345.2 MB, free: 2.742 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.897e-05/0.03464, allocations: 39.97 kB / 345.2 MB, free: 2.703 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005727/0.03521, allocations: 379.1 kB / 345.6 MB, free: 2.32 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.03521, allocations: 4 kB / 345.6 MB, free: 2.316 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.03522, allocations: 0 / 345.6 MB, free: 2.316 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.03522, allocations: 7.984 kB / 345.6 MB, free: 2.309 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009371/0.03616, allocations: 0.7536 MB / 346.4 MB, free: 1.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.03616, allocations: 4 kB / 346.4 MB, free: 1.516 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.0363, allocations: 43.97 kB / 346.4 MB, free: 1.473 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004997/0.03679, allocations: 228.8 kB / 346.6 MB, free: 1.242 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.03681, allocations: 8 kB / 346.6 MB, free: 1.234 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002096/0.03891, allocations: 2.993 MB / 349.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.03891, allocations: 0 / 349.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006836/0.03959, allocations: 0.6316 MB / 350.3 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.867e-05/0.03968, allocations: 67.64 kB / 350.3 MB, free: 13.31 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/0.03971, allocations: 4 kB / 350.3 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.03985, allocations: 16 kB / 350.3 MB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.97e-05/0.03992, allocations: 39.86 kB / 350.4 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.03993, allocations: 8 kB / 350.4 MB, free: 13.24 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001237/0.04006, allocations: 168.7 kB / 350.6 MB, free: 13.08 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.04006, allocations: 0 / 350.6 MB, free: 13.08 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004967/0.04055, allocations: 208 kB / 350.8 MB, free: 12.88 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (machine.rotor.phi,machine.rotor.w) * 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 (26): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,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.0002153/0.04077, allocations: 118.6 kB / 350.9 MB, free: 12.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005494/0.04132, allocations: 0.5427 MB / 351.4 MB, free: 12.18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/0.04133, allocations: 9.438 kB / 351.4 MB, free: 12.18 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003666/0.0417, allocations: 469.2 kB / 351.9 MB, free: 11.69 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004432/0.04214, allocations: 163 kB / 352 MB, free: 11.54 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001803/0.04394, allocations: 1.215 MB / 353.3 MB, free: 10.29 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001488/0.04409, allocations: 194 kB / 353.4 MB, free: 10.07 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001501/0.04424, allocations: 72.8 kB / 353.5 MB, free: 10 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001961/0.04444, allocations: 153.3 kB / 353.7 MB, free: 9.848 MB / 330.7 MB Notification: Performance of SimCode: time 4.71e-07/0.04444, allocations: 3.938 kB / 353.7 MB, free: 9.844 MB / 330.7 MB Notification: Performance of Templates: time 0.01218/0.05662, allocations: 10.06 MB / 363.7 MB, free: 15.95 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.27283234661445]