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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008373/0.0008372, allocations: 90.83 kB / 16.31 MB, free: 6.008 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.0009512/0.0009512, allocations: 181.4 kB / 17.21 MB, free: 5.902 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.379/1.379, allocations: 223.2 MB / 241.2 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3374/0.3374, allocations: 38.07 MB / 330.4 MB, free: 14.19 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000344/0.000344, allocations: 19.98 kB / 400.2 MB, free: 9.125 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.332, allocations: 59.15 MB / 459.3 MB, free: 30.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.007825/0.3398, allocations: 7.457 MB / 466.8 MB, free: 24.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008532/0.3484, allocations: 5.12 MB / 471.9 MB, free: 21.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001322/0.3498, allocations: 50.03 kB / 471.9 MB, free: 21.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01227/0.3621, allocations: 5.37 MB / 477.3 MB, free: 19.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002362/0.3645, allocations: 0.5572 MB / 477.9 MB, free: 19.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001908/0.3664, allocations: 446.2 kB / 478.3 MB, free: 18.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004703/0.3711, allocations: 2.541 MB / 480.9 MB, free: 17.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00168/0.3728, allocations: 0.9531 MB / 481.8 MB, free: 16.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001136/0.3739, allocations: 0.5171 MB / 482.3 MB, free: 16.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009608/0.3749, allocations: 0.6986 MB / 483 MB, free: 16.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.375, allocations: 44 kB / 483.1 MB, free: 16.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000533/0.3756, allocations: 163.8 kB / 483.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003327/0.3759, allocations: 454.8 kB / 483.7 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002062/0.3761, allocations: 225.1 kB / 483.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009316/0.3771, allocations: 1.173 MB / 485.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.3771, allocations: 4 kB / 485.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3771, allocations: 0 / 485.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.3771, allocations: 0 / 485.1 MB, free: 14.04 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.002246/0.3794, allocations: 1.269 MB / 486.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.3794, allocations: 8.031 kB / 486.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001447/0.3796, allocations: 135.4 kB / 486.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005006/0.3801, allocations: 158.4 kB / 486.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001209/0.3813, allocations: 0.8434 MB / 487.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.41e-05/0.3813, allocations: 61.98 kB / 487.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.3815, allocations: 91.86 kB / 487.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.3828, allocations: 1.229 MB / 488.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.558e-05/0.3829, allocations: 7.984 kB / 488.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.886e-05/0.383, allocations: 31.98 kB / 488.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001741/0.3832, allocations: 93.89 kB / 489 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.3844, allocations: 0.9991 MB / 490 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004716/0.3891, allocations: 4.936 MB / 494.9 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007396/0.3899, allocations: 0.6488 MB / 495.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004723/0.3904, allocations: 355.3 kB / 495.9 MB, free: 2.754 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.985e-05/0.3904, allocations: 12.55 kB / 495.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006073/0.391, allocations: 453.6 kB / 496.4 MB, free: 2.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.524e-06/0.3911, allocations: 0 / 496.4 MB, free: 2.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004316/0.3954, allocations: 2.749 MB / 499.1 MB, free: 15.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.573e-05/0.3955, allocations: 115.3 kB / 499.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000972/0.3965, allocations: 0.739 MB / 500 MB, free: 14.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.044e-05/0.3965, allocations: 37.7 kB / 0.4883 GB, free: 14.47 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004129/0.397, allocations: 0.4986 MB / 0.4888 GB, free: 13.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002061/0.3972, allocations: 232.7 kB / 0.489 GB, free: 13.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.016e-05/0.3972, allocations: 20 kB / 0.489 GB, free: 13.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001965/0.3974, allocations: 402.7 kB / 0.4894 GB, free: 13.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005984/0.398, allocations: 369.8 kB / 0.4898 GB, free: 12.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000788/0.3988, allocations: 0.6499 MB / 0.4904 GB, free: 12.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007441/0.3996, allocations: 487 kB / 0.4908 GB, free: 11.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.3996, allocations: 4 kB / 0.4909 GB, free: 11.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002887/0.4025, allocations: 1.608 MB / 0.4924 GB, free: 10.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.4025, allocations: 12.09 kB / 0.4924 GB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.4026, allocations: 12 kB / 0.4924 GB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001491/0.4041, allocations: 493.2 kB / 0.4929 GB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006269/0.4047, allocations: 167.7 kB / 0.4931 GB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00938/0.4141, allocations: 6.503 MB / 0.4994 GB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008979/0.415, allocations: 48.05 kB / 0.4995 GB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000185/0.4152, allocations: 47.98 kB / 0.4995 GB, free: 2.504 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 (89): * Single equations (assignments): 87 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {6 23} Notification: Performance of prepare postOptimizeDAE: time 0.0008006/0.4161, allocations: 341.5 kB / 0.4998 GB, free: 2.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002328/0.4163, allocations: 90.91 kB / 0.4999 GB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002154/0.4185, allocations: 1.106 MB / 0.501 GB, free: 0.9062 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.484e-05/0.4185, allocations: 11.94 kB / 0.501 GB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.4185, allocations: 0 / 0.501 GB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.968e-06/0.4185, allocations: 4 kB / 0.501 GB, free: 0.8906 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004141/0.4227, allocations: 2.115 MB / 0.5031 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.4227, allocations: 128 / 0.5031 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007457/0.4235, allocations: 131.8 kB / 0.5032 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005929/0.4241, allocations: 158.4 kB / 0.5034 GB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.704e-05/0.4242, allocations: 23.98 kB / 0.5034 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005176/0.4294, allocations: 4.454 MB / 0.5077 GB, free: 9.492 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-05/0.4294, allocations: 11.91 kB / 0.5078 GB, free: 9.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002614/0.432, allocations: 1.522 MB / 0.5092 GB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004871/0.4325, allocations: 216 kB / 0.5094 GB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002073/0.4327, allocations: 16 kB / 0.5095 GB, free: 7.637 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005202/0.4333, allocations: 35.97 kB / 0.5095 GB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/0.4335, allocations: 52.48 kB / 0.5095 GB, free: 7.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.448e-05/0.4335, allocations: 27.94 kB / 0.5096 GB, free: 7.523 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001123/0.4347, allocations: 0.5029 MB / 0.5101 GB, free: 7.027 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.4347, allocations: 4 kB / 0.5101 GB, free: 7.023 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001622/0.4363, allocations: 264.1 kB / 0.5103 GB, free: 6.766 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 (59): * Single equations (assignments): 55 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(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.003948/0.4403, allocations: 2.402 MB / 0.5127 GB, free: 4.414 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002867/0.4431, allocations: 1.323 MB / 0.514 GB, free: 3.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/0.4432, allocations: 4.125 kB / 0.514 GB, free: 3.066 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001296/0.4445, allocations: 0.7766 MB / 0.5147 GB, free: 2.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.4457, allocations: 213.1 kB / 0.5149 GB, free: 2.047 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01403/0.4598, allocations: 7.578 MB / 0.5223 GB, free: 10.15 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001076/0.4609, allocations: 1.143 MB / 0.5234 GB, free: 8.984 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008529/0.4618, allocations: 239.3 kB / 0.5237 GB, free: 8.746 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005459/0.4623, allocations: 363.2 kB / 0.524 GB, free: 8.391 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4624, allocations: 0 / 0.524 GB, free: 8.391 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05056/0.5129, allocations: 22.49 MB / 0.546 GB, free: 2.152 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002313/0.5132, allocations: 268.6 kB / 0.5462 GB, free: 1.801 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.469/2.982, allocations: 64 / 0.5462 GB, free: 1.801 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.mat does not exist to compare? outputFormat=mat