Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.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.ASMav,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm.motor.slip|power.p.1.|power.p.2.|power.p.3.|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm.motor.slip|power.p.1.|power.p.2.|power.p.3.|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008212/0.0008212, allocations: 92.94 kB / 16.3 MB, free: 5.992 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.0009559/0.0009558, allocations: 183.4 kB / 17.19 MB, free: 5.906 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.222/1.222, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2575/0.2575, allocations: 38.07 MB / 330.3 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002873/0.0002874, allocations: 12 kB / 400 MB, free: 9.289 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2467, allocations: 59.16 MB / 459.1 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.005985/0.2527, allocations: 7.11 MB / 466.2 MB, free: 25.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006797/0.2595, allocations: 5.076 MB / 471.3 MB, free: 21.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006845/0.2603, allocations: 53.34 kB / 471.4 MB, free: 21.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004502/0.2648, allocations: 1.927 MB / 473.3 MB, free: 20.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001295/0.2661, allocations: 453.1 kB / 473.7 MB, free: 20.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001204/0.2673, allocations: 438.3 kB / 474.2 MB, free: 20.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001031/0.2683, allocations: 0.7554 MB / 474.9 MB, free: 20.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001217/0.2696, allocations: 0.9649 MB / 475.9 MB, free: 19.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005734/0.2701, allocations: 443.8 kB / 476.3 MB, free: 19.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005852/0.2707, allocations: 0.4949 MB / 476.8 MB, free: 19.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.929e-05/0.2709, allocations: 46.69 kB / 476.9 MB, free: 19.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003948/0.2713, allocations: 153.5 kB / 477 MB, free: 19.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000353/0.2716, allocations: 414.1 kB / 477.4 MB, free: 19.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001877/0.2718, allocations: 225.1 kB / 477.6 MB, free: 18.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008333/0.2726, allocations: 1.176 MB / 478.8 MB, free: 18.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.215e-06/0.2727, allocations: 0 / 478.8 MB, free: 18.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2727, allocations: 1.531 kB / 478.8 MB, free: 18.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.2727, allocations: 0 / 478.8 MB, free: 18.1 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: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.002396/0.2751, allocations: 1.266 MB / 480.1 MB, free: 17.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.2751, allocations: 9.781 kB / 480.1 MB, free: 17.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006308/0.2758, allocations: 152.5 kB / 480.2 MB, free: 17.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001511/0.2773, allocations: 0.8505 MB / 481.1 MB, free: 16.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.945e-05/0.2774, allocations: 62.61 kB / 481.2 MB, free: 16.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001579/0.2775, allocations: 91.11 kB / 481.2 MB, free: 16.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.2791, allocations: 1.224 MB / 482.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.219e-05/0.2792, allocations: 6.156 kB / 482.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.902e-05/0.2793, allocations: 40.56 kB / 482.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002145/0.2795, allocations: 83.33 kB / 482.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001406/0.2809, allocations: 0.9942 MB / 483.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004923/0.2858, allocations: 4.923 MB / 488.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006926/0.2865, allocations: 0.6449 MB / 489.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.672e-05/0.2866, allocations: 12.61 kB / 489.2 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000481/0.2871, allocations: 445.9 kB / 489.6 MB, free: 8.965 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.565e-06/0.2871, allocations: 4 kB / 489.6 MB, free: 8.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003647/0.2907, allocations: 2.907 MB / 492.5 MB, free: 5.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.208e-05/0.2908, allocations: 119.3 kB / 492.6 MB, free: 5.734 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006162/0.2914, allocations: 0.7351 MB / 493.4 MB, free: 4.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.385e-05/0.2915, allocations: 37.7 kB / 493.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002037/0.2917, allocations: 0.4986 MB / 493.9 MB, free: 4.438 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.2918, allocations: 240.6 kB / 494.1 MB, free: 4.199 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.072e-05/0.2918, allocations: 27.94 kB / 494.2 MB, free: 4.172 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.244e-05/0.2919, allocations: 398.7 kB / 494.5 MB, free: 3.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004351/0.2924, allocations: 369.8 kB / 494.9 MB, free: 3.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005221/0.2929, allocations: 0.6461 MB / 495.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005451/0.2935, allocations: 487 kB / 496 MB, free: 2.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.2935, allocations: 4 kB / 496 MB, free: 2.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002256/0.2957, allocations: 1.711 MB / 497.7 MB, free: 400 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.2958, allocations: 12 kB / 497.8 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.2958, allocations: 8 kB / 497.8 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/0.2972, allocations: 0.5102 MB / 498.3 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005857/0.2977, allocations: 159.7 kB / 498.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009073/0.3068, allocations: 8.074 MB / 0.4946 GB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005974/0.3074, allocations: 47.97 kB / 0.4947 GB, free: 7.172 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.9e-05/0.3075, allocations: 43.98 kB / 0.4947 GB, free: 7.129 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * 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 {6 23} Notification: Performance of prepare postOptimizeDAE: time 0.0004779/0.308, allocations: 349.4 kB / 0.4951 GB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.733e-05/0.3081, allocations: 83.16 kB / 0.4951 GB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001707/0.3098, allocations: 1.225 MB / 0.4963 GB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.543e-06/0.3099, allocations: 4 kB / 0.4963 GB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3099, allocations: 4 kB / 0.4963 GB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.3099, allocations: 4.109 kB / 0.4963 GB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003088/0.313, allocations: 2.207 MB / 0.4985 GB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.313, allocations: 0 / 0.4985 GB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006517/0.3136, allocations: 119.8 kB / 0.4986 GB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005071/0.3142, allocations: 187.3 kB / 0.4988 GB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.077e-05/0.3142, allocations: 23.98 kB / 0.4988 GB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004291/0.3185, allocations: 5.882 MB / 0.5046 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3185, allocations: 0 / 0.5046 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002083/0.3206, allocations: 1.692 MB / 0.5062 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003554/0.321, allocations: 220 kB / 0.5064 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001217/0.3211, allocations: 20 kB / 0.5064 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004557/0.3216, allocations: 35.91 kB / 0.5065 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.3217, allocations: 60.38 kB / 0.5065 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.623e-05/0.3218, allocations: 23.98 kB / 0.5066 GB, free: 10.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005894/0.3224, allocations: 0.499 MB / 0.507 GB, free: 9.598 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3224, allocations: 4 kB / 0.507 GB, free: 9.594 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001041/0.3234, allocations: 268 kB / 0.5073 GB, free: 9.332 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008678/0.3243, allocations: 414 kB / 0.5077 GB, free: 9.066 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002351/0.3267, allocations: 1.45 MB / 0.5091 GB, free: 7.582 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.3267, allocations: 0 / 0.5091 GB, free: 7.582 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.3278, allocations: 0.9005 MB / 0.51 GB, free: 6.621 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007835/0.3286, allocations: 189.6 kB / 0.5102 GB, free: 6.438 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004267/0.3329, allocations: 3.253 MB / 0.5133 GB, free: 3.152 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008456/0.3338, allocations: 1.174 MB / 0.5145 GB, free: 1.949 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006464/0.3344, allocations: 223.3 kB / 0.5147 GB, free: 1.727 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001802/0.3346, allocations: 67.42 kB / 0.5148 GB, free: 1.66 MB / 382.1 MB Notification: Performance of SimCode: time 4.9e-07/0.3346, allocations: 0 / 0.5148 GB, free: 1.66 MB / 382.1 MB Notification: Performance of Templates: time 0.0214/0.356, allocations: 13.55 MB / 0.528 GB, free: 4.227 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMav.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches