Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.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.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|loadInertia.flange_a.tau|loadInertia.w|sm_ctrl.motor.tau_el|sm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|loadInertia.flange_a.tau|loadInertia.w|sm_ctrl.motor.tau_el|sm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008124/0.0008125, allocations: 95.7 kB / 16.31 MB, free: 6.004 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.0008172/0.0008172, allocations: 186.2 kB / 17.2 MB, free: 5.914 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.197/1.197, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2707/0.2707, allocations: 38.07 MB / 330.3 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003036/0.0003037, allocations: 12 kB / 400 MB, free: 9.297 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2434, allocations: 59.16 MB / 459.1 MB, free: 30.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.005909/0.2494, allocations: 7.02 MB / 466.2 MB, free: 25.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003894/0.2533, allocations: 3.122 MB / 469.3 MB, free: 23.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005328/0.2538, allocations: 52.84 kB / 469.3 MB, free: 23.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005486/0.2544, allocations: 249 kB / 469.6 MB, free: 23.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001176/0.2556, allocations: 0.5799 MB / 470.2 MB, free: 22.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001036/0.2566, allocations: 383.6 kB / 470.5 MB, free: 22.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001101/0.2577, allocations: 0.8551 MB / 471.4 MB, free: 22.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001115/0.2589, allocations: 0.9583 MB / 472.3 MB, free: 21.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004995/0.2594, allocations: 422.1 kB / 472.8 MB, free: 21.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005643/0.2599, allocations: 462.7 kB / 473.2 MB, free: 21.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.587e-05/0.26, allocations: 45.88 kB / 473.2 MB, free: 21.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004577/0.2605, allocations: 267.6 kB / 473.5 MB, free: 21.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002679/0.2608, allocations: 302.8 kB / 473.8 MB, free: 21.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.261, allocations: 221.1 kB / 474 MB, free: 20.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001199/0.2622, allocations: 1.283 MB / 475.3 MB, free: 20.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.2622, allocations: 0 / 475.3 MB, free: 20.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2622, allocations: 0 / 475.3 MB, free: 20.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.662e-05/0.2622, allocations: 0 / 475.3 MB, free: 20.52 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002063/0.2643, allocations: 1.229 MB / 476.5 MB, free: 19.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.2643, allocations: 9.625 kB / 476.5 MB, free: 19.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006092/0.2649, allocations: 174.5 kB / 476.7 MB, free: 19.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001136/0.2661, allocations: 0.7647 MB / 477.5 MB, free: 18.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.139e-05/0.2661, allocations: 61.72 kB / 477.5 MB, free: 18.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000174/0.2663, allocations: 105.6 kB / 477.6 MB, free: 18.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.2679, allocations: 1.149 MB / 478.8 MB, free: 18.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.864e-05/0.2679, allocations: 2.344 kB / 478.8 MB, free: 18.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.857e-05/0.268, allocations: 32.19 kB / 478.8 MB, free: 18.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001022/0.2681, allocations: 70.28 kB / 478.9 MB, free: 18.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/0.2695, allocations: 0.9465 MB / 479.8 MB, free: 17.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004739/0.2743, allocations: 4.643 MB / 484.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009677/0.2752, allocations: 0.6988 MB / 485.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.293e-05/0.2753, allocations: 6.312 kB / 485.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.24e-05/0.2753, allocations: 47.34 kB / 485.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.134e-06/0.2753, allocations: 0 / 485.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=62): time 0.003881/0.2792, allocations: 2.567 MB / 487.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/0.2793, allocations: 141.1 kB / 487.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00057/0.2799, allocations: 0.6763 MB / 488.6 MB, free: 9.926 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.633e-05/0.2799, allocations: 33.7 kB / 488.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/0.2801, allocations: 0.491 MB / 489.1 MB, free: 9.387 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.2802, allocations: 216.8 kB / 489.3 MB, free: 9.172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.134e-05/0.2802, allocations: 16 kB / 489.4 MB, free: 9.156 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.645e-05/0.2803, allocations: 386.8 kB / 489.7 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003658/0.2807, allocations: 277.8 kB / 490 MB, free: 8.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004307/0.2811, allocations: 0.5138 MB / 490.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002033/0.2832, allocations: 0.8179 MB / 491.3 MB, free: 7.043 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.2832, allocations: 4 kB / 491.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002316/0.2855, allocations: 1.494 MB / 492.8 MB, free: 5.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003756/0.2859, allocations: 2.961 MB / 495.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.2859, allocations: 8 kB / 495.8 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00138/0.2873, allocations: 491.7 kB / 496.3 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004313/0.2878, allocations: 143.8 kB / 496.4 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008843/0.2966, allocations: 7.795 MB / 0.4924 GB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005067/0.2971, allocations: 47.84 kB / 0.4925 GB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.193e-05/0.2972, allocations: 35.98 kB / 0.4925 GB, free: 9.367 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.091e-06/0.2972, allocations: 4 kB / 0.4925 GB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002294/0.2995, allocations: 1.29 MB / 0.4938 GB, free: 8.027 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.2995, allocations: 8 kB / 0.4938 GB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001352/0.3009, allocations: 454.4 kB / 0.4942 GB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000467/0.3014, allocations: 135.8 kB / 0.4943 GB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007974/0.3093, allocations: 7.486 MB / 0.5016 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005139/0.3099, allocations: 36.23 kB / 0.5017 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.065e-05/0.31, allocations: 43.98 kB / 0.5017 GB, free: 15.47 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {4 23} Notification: Performance of prepare postOptimizeDAE: time 0.0005451/0.3105, allocations: 411.1 kB / 0.5021 GB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.3106, allocations: 82.95 kB / 0.5022 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001278/0.3119, allocations: 0.8376 MB / 0.503 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.59e-05/0.312, allocations: 8 kB / 0.503 GB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.312, allocations: 0 / 0.503 GB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.312, allocations: 7.984 kB / 0.503 GB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002675/0.3147, allocations: 1.866 MB / 0.5048 GB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3147, allocations: 0 / 0.5048 GB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006472/0.3153, allocations: 135.9 kB / 0.505 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001153/0.3155, allocations: 45.7 kB / 0.505 GB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.231e-05/0.3155, allocations: 19.94 kB / 0.505 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001676/0.3172, allocations: 2.665 MB / 0.5076 GB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.3172, allocations: 8.031 kB / 0.5076 GB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001666/0.3189, allocations: 1.367 MB / 0.509 GB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003017/0.3192, allocations: 216.1 kB / 0.5092 GB, free: 7.309 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.554e-05/0.3193, allocations: 12 kB / 0.5092 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004052/0.3197, allocations: 35.97 kB / 0.5092 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.53e-05/0.3198, allocations: 44.44 kB / 0.5093 GB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.551e-05/0.3198, allocations: 16 kB / 0.5093 GB, free: 7.203 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005346/0.3204, allocations: 471 kB / 0.5097 GB, free: 6.746 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3204, allocations: 3.938 kB / 0.5097 GB, free: 6.742 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001468/0.3219, allocations: 416 kB / 0.5101 GB, free: 6.336 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,frictTorq.phi,PI_i_q.I.y) * 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 (65): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003433/0.3222, allocations: 137.4 kB / 0.5103 GB, free: 6.191 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003487/0.3257, allocations: 2.243 MB / 0.5125 GB, free: 3.875 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3257, allocations: 0 / 0.5125 GB, free: 3.875 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000691/0.3264, allocations: 0.5554 MB / 0.513 GB, free: 3.297 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008642/0.3273, allocations: 201.5 kB / 0.5132 GB, free: 3.098 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003113/0.3304, allocations: 2.564 MB / 0.5157 GB, free: 0.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007025/0.3311, allocations: 1.139 MB / 0.5168 GB, free: 15.33 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000612/0.3318, allocations: 206.5 kB / 0.517 GB, free: 15.12 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000155/0.3319, allocations: 63.42 kB / 0.5171 GB, free: 15.06 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3319, allocations: 4 kB / 0.5171 GB, free: 15.06 MB / 398.1 MB Notification: Performance of Templates: time 0.02295/0.3549, allocations: 16.03 MB / 0.5327 GB, free: 15.14 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches