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.0008758/0.0008758, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0009255/0.0009255, allocations: 170 kB / 23.95 MB, free: 0.6094 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.932/0.932, allocations: 177.1 MB / 204.3 MB, free: 5.742 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.236/0.236, allocations: 29.41 MB / 290.1 MB, free: 2.434 MB / 266.7 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.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.578e-05/1.736e-05, allocations: 4.672 kB / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.006011/0.006028, allocations: 6.072 MB / 436.3 MB, free: 7.504 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003522/0.00955, allocations: 2.509 MB / 438.8 MB, free: 4.988 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004926/0.01004, allocations: 39.69 kB / 438.8 MB, free: 4.949 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001105/0.01115, allocations: 341.8 kB / 439.2 MB, free: 4.613 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001121/0.01227, allocations: 0.6137 MB / 439.8 MB, free: 3.996 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005075/0.01278, allocations: 299.4 kB / 440.1 MB, free: 3.703 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001195/0.01397, allocations: 1.234 MB / 441.3 MB, free: 2.465 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007522/0.01472, allocations: 0.7711 MB / 442.1 MB, free: 1.684 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007302/0.01545, allocations: 0.678 MB / 442.8 MB, free: 1.004 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005222/0.01598, allocations: 490.7 kB / 443.2 MB, free: 0.5234 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.208e-05/0.01606, allocations: 92 kB / 443.3 MB, free: 444 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004069/0.01646, allocations: 351.4 kB / 443.7 MB, free: 92 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1968/0.2133, allocations: 349.8 kB / 444 MB, free: 45.2 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004838/0.2137, allocations: 315.9 kB / 444.3 MB, free: 45.2 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001552/0.2153, allocations: 1.398 MB / 445.7 MB, free: 45.18 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.2153, allocations: 0 / 445.7 MB, free: 45.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2153, allocations: 0 / 445.7 MB, free: 45.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.2153, allocations: 3.156 kB / 445.7 MB, free: 45.18 MB / 410.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.001275/0.2166, allocations: 1.087 MB / 446.8 MB, free: 44.63 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.2166, allocations: 15.33 kB / 446.8 MB, free: 44.62 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.771e-05/0.2167, allocations: 116.5 kB / 446.9 MB, free: 44.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003958/0.2171, allocations: 143.2 kB / 447.1 MB, free: 44.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007144/0.2178, allocations: 0.6312 MB / 447.7 MB, free: 44.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.793e-05/0.2179, allocations: 111.8 kB / 447.8 MB, free: 44.26 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.144e-05/0.218, allocations: 67.56 kB / 447.9 MB, free: 44.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000894/0.2189, allocations: 0.9615 MB / 448.8 MB, free: 44.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.294e-05/0.2189, allocations: 3.844 kB / 448.8 MB, free: 44.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.558e-05/0.219, allocations: 29.91 kB / 448.9 MB, free: 44.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-05/0.219, allocations: 54.67 kB / 448.9 MB, free: 44.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000768/0.2198, allocations: 0.7882 MB / 449.7 MB, free: 44.09 MB / 410.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.002578/0.2224, allocations: 3.401 MB / 453.1 MB, free: 42.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004528/0.2228, allocations: 421.5 kB / 453.5 MB, free: 42.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002511/0.2231, allocations: 225.1 kB / 453.7 MB, free: 42.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.978e-05/0.2231, allocations: 17.58 kB / 453.8 MB, free: 42.11 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.2231, allocations: 37.25 kB / 453.8 MB, free: 42.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 2.625e-06/0.2231, allocations: 5.734 kB / 453.8 MB, free: 42.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=55): time 0.005531/0.2287, allocations: 3.393 MB / 457.2 MB, free: 40.61 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/0.2287, allocations: 113 kB / 457.3 MB, free: 40.48 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004197/0.2291, allocations: 0.5396 MB / 457.8 MB, free: 40.23 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.2292, allocations: 36.86 kB / 457.9 MB, free: 40.19 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.2293, allocations: 405.6 kB / 458.3 MB, free: 39.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.009e-05/0.2294, allocations: 196.5 kB / 458.5 MB, free: 39.71 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/0.2295, allocations: 129.3 kB / 458.6 MB, free: 39.64 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.553e-05/0.2296, allocations: 375.7 kB / 459 MB, free: 39.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002762/0.2299, allocations: 283.3 kB / 459.2 MB, free: 39.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003211/0.2302, allocations: 0.4976 MB / 459.7 MB, free: 38.81 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006418/0.2308, allocations: 0.8576 MB / 460.6 MB, free: 38.26 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.2308, allocations: 3.438 kB / 460.6 MB, free: 38.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00163/0.2325, allocations: 1.307 MB / 461.9 MB, free: 37.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.2325, allocations: 6.219 kB / 461.9 MB, free: 37.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.2325, allocations: 11.86 kB / 461.9 MB, free: 37.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008123/0.2333, allocations: 460.6 kB / 462.4 MB, free: 37.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.2335, allocations: 119.2 kB / 462.5 MB, free: 37.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00526/0.2388, allocations: 8.732 MB / 471.2 MB, free: 31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000439/0.2392, allocations: 35.77 kB / 471.3 MB, free: 30.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.255e-05/0.2393, allocations: 29.22 kB / 471.3 MB, free: 30.98 MB / 410.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.0003661/0.2396, allocations: 314.2 kB / 471.6 MB, free: 30.77 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.507e-05/0.2397, allocations: 62.08 kB / 471.7 MB, free: 30.74 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001518/0.2412, allocations: 1.147 MB / 472.8 MB, free: 30.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.2412, allocations: 13.2 kB / 472.8 MB, free: 30.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2412, allocations: 3.125 kB / 472.8 MB, free: 30.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.2412, allocations: 0 / 472.8 MB, free: 30.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002303/0.2435, allocations: 1.995 MB / 474.8 MB, free: 29.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.2435, allocations: 3.25 kB / 474.8 MB, free: 29.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000165/0.2437, allocations: 67.36 kB / 474.9 MB, free: 29.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000724/0.2444, allocations: 448.1 kB / 475.3 MB, free: 29.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.2445, allocations: 11.25 kB / 475.3 MB, free: 29.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004958/0.2494, allocations: 8.47 MB / 483.8 MB, free: 22.67 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.2494, allocations: 3.125 kB / 483.8 MB, free: 22.67 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002289/0.2517, allocations: 1.69 MB / 485.5 MB, free: 21.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002646/0.252, allocations: 120.6 kB / 485.6 MB, free: 21.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.9e-05/0.252, allocations: 17.28 kB / 485.6 MB, free: 21.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002211/0.2522, allocations: 17.81 kB / 485.6 MB, free: 21.77 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002299/0.2525, allocations: 67.34 kB / 485.7 MB, free: 21.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.383e-05/0.2525, allocations: 20 kB / 485.7 MB, free: 21.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003784/0.2529, allocations: 370.9 kB / 486.1 MB, free: 21.58 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2529, allocations: 4.062 kB / 486.1 MB, free: 21.58 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009517/0.2538, allocations: 251.4 kB / 486.3 MB, free: 21.55 MB / 410.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.002715/0.2566, allocations: 2.275 MB / 488.6 MB, free: 20.19 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001744/0.2583, allocations: 1.327 MB / 489.9 MB, free: 19.42 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.2583, allocations: 0 / 489.9 MB, free: 19.42 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009636/0.2593, allocations: 0.9733 MB / 490.9 MB, free: 18.76 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007363/0.26, allocations: 178.2 kB / 491.1 MB, free: 18.69 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009386/0.2694, allocations: 7.342 MB / 498.4 MB, free: 14.67 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004555/0.2698, allocations: 457.4 kB / 498.9 MB, free: 14.52 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003159/0.2702, allocations: 111.8 kB / 499 MB, free: 14.49 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002157/0.2704, allocations: 266.7 kB / 499.3 MB, free: 14.29 MB / 410.7 MB Notification: Performance of SimCode: time 1.303e-06/0.2704, allocations: 0 / 499.3 MB, free: 14.29 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05026/0.3206, allocations: 22.81 MB / 0.5098 GB, free: 5.332 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.102/8.422, allocations: 11.78 kB / 0.5098 GB, free: 5.32 MB / 410.7 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) [Timeout 52.5] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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: 10.477533781901002]