Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.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.001482/0.001482, allocations: 76.41 kB / 22.21 MB, free: 2.285 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.00119/0.00119, allocations: 173.8 kB / 25.61 MB, free: 8.898 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.9914/0.9914, allocations: 177.1 MB / 206 MB, free: 4.5 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.1272/0.1272, allocations: 29.43 MB / 292 MB, free: 2.641 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.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="mat",numberOfIntervals=12177,variableFilter="Time|asm.motor.tau_el|asm.rotor.w|power.i.[0-9,]+.|power.p_av.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="mat",numberOfIntervals=12177,variableFilter="Time|asm.motor.tau_el|asm.rotor.w|power.i.[0-9,]+.|power.p_av.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 370.9 MB, free: 32.33 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.443e-05/2.58e-05, allocations: 2.312 kB / 370.9 MB, free: 32.33 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.005465/0.005491, allocations: 6.789 MB / 377.7 MB, free: 25.52 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006078/0.01157, allocations: 5.15 MB / 382.8 MB, free: 20.35 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008336/0.0124, allocations: 43.69 kB / 382.9 MB, free: 20.3 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007913/0.02032, allocations: 6.58 MB / 389.5 MB, free: 13.71 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001797/0.02211, allocations: 0.7499 MB / 390.2 MB, free: 12.96 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001166/0.02328, allocations: 0.5611 MB / 390.8 MB, free: 12.39 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002719/0.026, allocations: 2.802 MB / 393.6 MB, free: 9.582 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001068/0.02707, allocations: 1.17 MB / 394.7 MB, free: 8.383 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001212/0.02828, allocations: 1.087 MB / 395.8 MB, free: 7.293 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000841/0.02912, allocations: 0.9079 MB / 396.7 MB, free: 6.383 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001589/0.02928, allocations: 144 kB / 396.9 MB, free: 6.242 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009149/0.03019, allocations: 0.7136 MB / 397.6 MB, free: 5.527 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003769/0.03057, allocations: 0.6936 MB / 398.3 MB, free: 4.832 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004517/0.03102, allocations: 0.5223 MB / 398.8 MB, free: 4.309 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001585/0.03261, allocations: 1.6 MB / 400.4 MB, free: 2.703 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.03261, allocations: 3.984 kB / 400.4 MB, free: 2.699 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.03261, allocations: 0 / 400.4 MB, free: 2.699 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.656e-05/0.03263, allocations: 0 / 400.4 MB, free: 2.699 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 293 * Number of variables: 293 Notification: Performance of Generate backend data structure: time 0.00206/0.03469, allocations: 1.924 MB / 402.3 MB, free: 0.707 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.03472, allocations: 8.031 kB / 402.3 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005924/0.03531, allocations: 311.8 kB / 402.6 MB, free: 404 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.03643, allocations: 0.9271 MB / 403.6 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001699/0.0366, allocations: 333.2 kB / 403.9 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001523/0.03675, allocations: 119.9 kB / 404 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.03796, allocations: 1.059 MB / 405.1 MB, free: 13.78 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.077e-05/0.03799, allocations: 3.938 kB / 405.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.368e-05/0.03808, allocations: 43.98 kB / 405.1 MB, free: 13.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001702/0.03825, allocations: 113.9 kB / 405.2 MB, free: 13.62 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007339/0.03898, allocations: 489.5 kB / 405.7 MB, free: 13.13 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004981/0.04396, allocations: 5.183 MB / 410.9 MB, free: 7.773 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006152/0.04458, allocations: 440 kB / 411.3 MB, free: 7.324 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000323/0.0449, allocations: 239.4 kB / 411.6 MB, free: 7.082 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.894e-05/0.04495, allocations: 17 kB / 411.6 MB, free: 7.066 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005486/0.0455, allocations: 0.523 MB / 412.1 MB, free: 6.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 2.475e-06/0.0455, allocations: 0 / 412.1 MB, free: 6.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=119): time 0.003351/0.04885, allocations: 1.875 MB / 414 MB, free: 4.602 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.462e-05/0.04892, allocations: 131.7 kB / 414.1 MB, free: 4.449 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005132/0.04943, allocations: 0.6903 MB / 414.8 MB, free: 3.738 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.03e-05/0.0495, allocations: 53.7 kB / 414.8 MB, free: 3.68 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00036/0.04986, allocations: 0.5855 MB / 415.4 MB, free: 3.086 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002576/0.05012, allocations: 440.4 kB / 415.9 MB, free: 2.652 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002741/0.05039, allocations: 260.4 kB / 416.1 MB, free: 2.391 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002132/0.0506, allocations: 0.6208 MB / 416.7 MB, free: 1.758 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003141/0.05092, allocations: 248.8 kB / 417 MB, free: 1.512 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004647/0.05138, allocations: 0.6557 MB / 417.6 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007831/0.05217, allocations: 0.8746 MB / 418.5 MB, free: 15.69 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.592e-06/0.05217, allocations: 4 kB / 418.5 MB, free: 15.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.00167/0.05384, allocations: 1.285 MB / 419.8 MB, free: 14.37 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.673e-05/0.0539, allocations: 57.67 kB / 419.8 MB, free: 14.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.05391, allocations: 8 kB / 419.9 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00094/0.05485, allocations: 333.4 kB / 420.2 MB, free: 13.97 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004205/0.05527, allocations: 195.7 kB / 420.4 MB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003701/0.05898, allocations: 5.051 MB / 425.4 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004819/0.05946, allocations: 51.88 kB / 425.5 MB, free: 8.453 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.05957, allocations: 75.94 kB / 425.5 MB, free: 8.379 MB / 346.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: 29 (system.initime,inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 115 * Array equations: 3 * Algorithm blocks: 1 * 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 {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0004103/0.05998, allocations: 252.2 kB / 425.8 MB, free: 8.121 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002894/0.06027, allocations: 151.3 kB / 425.9 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001334/0.0616, allocations: 0.8899 MB / 426.8 MB, free: 7.059 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.139e-05/0.06163, allocations: 35.91 kB / 426.9 MB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.06164, allocations: 0 / 426.9 MB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.06165, allocations: 7.984 kB / 426.9 MB, free: 7.016 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002658/0.0643, allocations: 1.785 MB / 428.7 MB, free: 5.176 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.06431, allocations: 0 / 428.7 MB, free: 5.176 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000477/0.06479, allocations: 147.8 kB / 428.8 MB, free: 5.031 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002904/0.06508, allocations: 123 kB / 428.9 MB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.657e-05/0.06515, allocations: 35.97 kB / 429 MB, free: 4.863 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002859/0.06801, allocations: 5.378 MB / 434.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.06802, allocations: 7.984 kB / 434.3 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001789/0.0698, allocations: 1.276 MB / 435.6 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003523/0.07016, allocations: 195.2 kB / 435.8 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001617/0.07032, allocations: 75.95 kB / 435.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003367/0.07065, allocations: 51.95 kB / 435.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.0708, allocations: 88.72 kB / 436 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.606e-05/0.07086, allocations: 31.97 kB / 436.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002929/0.07115, allocations: 386.8 kB / 436.4 MB, free: 13 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.07115, allocations: 0 / 436.4 MB, free: 13 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001002/0.07215, allocations: 379.7 kB / 436.8 MB, free: 12.63 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 17 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 79 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,1,100.0%), (2,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.001179/0.07333, allocations: 0.5484 MB / 437.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001738/0.07507, allocations: 1.383 MB / 438.7 MB, free: 10.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.07507, allocations: 0 / 438.7 MB, free: 10.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008472/0.07592, allocations: 0.92 MB / 439.7 MB, free: 9.863 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000731/0.07665, allocations: 212.6 kB / 439.9 MB, free: 9.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/0.08043, allocations: 2.594 MB / 442.5 MB, free: 7.016 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/0.08072, allocations: 349.6 kB / 442.8 MB, free: 6.652 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004644/0.08118, allocations: 139.9 kB / 442.9 MB, free: 6.512 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004586/0.08164, allocations: 278.1 kB / 443.2 MB, free: 6.238 MB / 362.7 MB Notification: Performance of SimCode: time 1.493e-06/0.08164, allocations: 0 / 443.2 MB, free: 6.238 MB / 362.7 MB Notification: Performance of Templates: time 0.02475/0.1064, allocations: 19.29 MB / 462.5 MB, free: 3.168 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM.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: 6.079325090628117]