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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 111.3 kB / 17.68 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 192 kB / 18.62 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.564/1.564, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1837/0.1837, allocations: 38.04 MB / 330.5 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001257, allocations: 62.58 kB / 400.3 MB, free: 33.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1327, allocations: 58.06 MB / 458.3 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.0101/0.1429, allocations: 6.317 MB / 464.6 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00553/0.1485, allocations: 2.688 MB / 467.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001006/0.1496, allocations: 27.88 kB / 467.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001578/0.1512, allocations: 334 kB / 467.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001984/0.1532, allocations: 0.5909 MB / 468.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008451/0.1541, allocations: 279.5 kB / 468.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001958/0.1561, allocations: 1.196 MB / 469.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001245/0.1573, allocations: 0.8806 MB / 470.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007593/0.1581, allocations: 486.3 kB / 471.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008059/0.1589, allocations: 0.5294 MB / 471.6 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001361/0.1591, allocations: 88 kB / 471.7 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000645/0.1597, allocations: 331.5 kB / 472 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003926/0.1601, allocations: 335.2 kB / 472.4 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005497/0.1607, allocations: 461.9 kB / 472.8 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001673/0.1624, allocations: 1.371 MB / 474.2 MB, free: 7.391 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.1624, allocations: 0 / 474.2 MB, free: 7.391 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.912e-06/0.1624, allocations: 0 / 474.2 MB, free: 7.391 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.429e-05/0.1624, allocations: 3.938 kB / 474.2 MB, free: 7.387 MB / 350.1 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.002452/0.1649, allocations: 1.136 MB / 475.3 MB, free: 6.199 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.1649, allocations: 8.031 kB / 475.3 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006814/0.1656, allocations: 139.8 kB / 475.5 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001351/0.167, allocations: 0.6905 MB / 476.2 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.1671, allocations: 91.61 kB / 476.3 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.1672, allocations: 64 kB / 476.3 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.1687, allocations: 0.9608 MB / 477.3 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.849e-05/0.1688, allocations: 0 / 477.3 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.228e-05/0.1689, allocations: 28 kB / 477.3 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001053/0.169, allocations: 57.28 kB / 477.4 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001311/0.1703, allocations: 0.7779 MB / 478.1 MB, free: 3.301 MB / 350.1 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.005381/0.1757, allocations: 3.84 MB / 482 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000851/0.1765, allocations: 0.5167 MB / 482.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004483/0.177, allocations: 234.5 kB / 482.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.189e-05/0.1771, allocations: 11.92 kB / 482.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.1771, allocations: 42.56 kB / 482.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 4.579e-06/0.1771, allocations: 3.984 kB / 482.8 MB, free: 14.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.01094/0.1881, allocations: 3.734 MB / 486.5 MB, free: 10.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.186e-05/0.1882, allocations: 123.2 kB / 486.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007557/0.1889, allocations: 0.5183 MB / 487.2 MB, free: 9.801 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.157e-05/0.189, allocations: 37.7 kB / 487.2 MB, free: 9.758 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002969/0.1893, allocations: 399 kB / 487.6 MB, free: 9.363 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.1895, allocations: 189.3 kB / 487.8 MB, free: 9.176 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002124/0.1897, allocations: 126.6 kB / 487.9 MB, free: 9.047 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002309/0.1899, allocations: 370.8 kB / 488.2 MB, free: 8.676 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005137/0.1905, allocations: 281.8 kB / 488.5 MB, free: 8.398 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007257/0.1912, allocations: 0.5033 MB / 489 MB, free: 7.789 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.1925, allocations: 0.8481 MB / 489.9 MB, free: 6.836 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.216e-06/0.1925, allocations: 4 kB / 489.9 MB, free: 6.832 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.0037/0.1962, allocations: 1.453 MB / 491.3 MB, free: 5.324 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.1963, allocations: 12.25 kB / 491.3 MB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/0.1963, allocations: 8 kB / 491.4 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001708/0.198, allocations: 451 kB / 491.8 MB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004749/0.1985, allocations: 119.8 kB / 491.9 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01306/0.2116, allocations: 9.123 MB / 0.4893 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008569/0.2125, allocations: 36.05 kB / 0.4893 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.318e-05/0.2126, allocations: 31.94 kB / 0.4894 GB, free: 10.98 MB / 382.1 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%), (2,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0006787/0.2133, allocations: 314.3 kB / 0.4897 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001776/0.2135, allocations: 63.25 kB / 0.4897 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003337/0.2168, allocations: 1.299 MB / 0.491 GB, free: 9.238 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.2168, allocations: 4 kB / 0.491 GB, free: 9.234 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.679e-06/0.2169, allocations: 4 kB / 0.491 GB, free: 9.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.2169, allocations: 12.12 kB / 0.491 GB, free: 9.219 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004934/0.2218, allocations: 2.249 MB / 0.4932 GB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.2218, allocations: 0 / 0.4932 GB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003425/0.2222, allocations: 63.89 kB / 0.4933 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001454/0.2237, allocations: 431.2 kB / 0.4937 GB, free: 6.363 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.913e-05/0.2237, allocations: 19.94 kB / 0.4937 GB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01174/0.2355, allocations: 8.859 MB / 0.5023 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/0.2355, allocations: 4.031 kB / 0.5023 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004261/0.2398, allocations: 1.844 MB / 0.5041 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004763/0.2403, allocations: 196.3 kB / 0.5043 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.644e-05/0.2404, allocations: 12 kB / 0.5043 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004315/0.2408, allocations: 23.92 kB / 0.5044 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002613/0.2411, allocations: 60.55 kB / 0.5044 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.566e-05/0.2412, allocations: 19.94 kB / 0.5044 GB, free: 10.67 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005989/0.2418, allocations: 370.8 kB / 0.5048 GB, free: 10.31 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.2418, allocations: 0 / 0.5048 GB, free: 10.31 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00132/0.2431, allocations: 248 kB / 0.505 GB, free: 10.07 MB / 398.1 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 {(2,9,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003921/0.2435, allocations: 145.8 kB / 0.5052 GB, free: 9.918 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002609/0.2461, allocations: 1.354 MB / 0.5065 GB, free: 8.504 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.2461, allocations: 0 / 0.5065 GB, free: 8.504 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001588/0.2477, allocations: 0.9704 MB / 0.5074 GB, free: 7.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.2488, allocations: 185 kB / 0.5076 GB, free: 7.305 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003419/0.2522, allocations: 1.672 MB / 0.5093 GB, free: 5.594 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008984/0.2531, allocations: 1.052 MB / 0.5103 GB, free: 4.516 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003824/0.2535, allocations: 113.7 kB / 0.5104 GB, free: 4.402 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/0.2536, allocations: 43.42 kB / 0.5104 GB, free: 4.359 MB / 398.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2537, allocations: 0 / 0.5104 GB, free: 4.359 MB / 398.1 MB Notification: Performance of Templates: time 0.4172/0.6708, allocations: 14.87 MB / 0.5249 GB, free: 67.51 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile (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=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches