Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001514/0.001514, allocations: 184.6 kB / 15.77 MB, free: 6.375 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.981/1.981, allocations: 205.4 MB / 221.9 MB, free: 13.81 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001144/0.001144, allocations: 94.86 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2636/0.2636, allocations: 38.06 MB / 356.6 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006477/0.0006478, allocations: 16 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1108, allocations: 56.32 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.009433/0.1202, allocations: 5.73 MB / 484.9 MB, free: 12.19 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01013/0.1304, allocations: 4.441 MB / 489.3 MB, free: 7.734 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008014/0.1313, allocations: 43.75 kB / 489.3 MB, free: 7.691 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006515/0.1378, allocations: 1.676 MB / 491 MB, free: 6.008 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001611/0.1395, allocations: 370.9 kB / 491.4 MB, free: 5.645 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001067/0.1406, allocations: 243.5 kB / 491.6 MB, free: 5.406 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001089/0.1417, allocations: 0.5384 MB / 492.2 MB, free: 4.867 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001629/0.1433, allocations: 0.7905 MB / 492.9 MB, free: 4.043 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000715/0.144, allocations: 334.9 kB / 493.3 MB, free: 3.715 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006647/0.1447, allocations: 322.9 kB / 493.6 MB, free: 3.398 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001048/0.1448, allocations: 32 kB / 493.6 MB, free: 3.367 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003229/0.1452, allocations: 75.88 kB / 493.7 MB, free: 3.293 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003984/0.1456, allocations: 255.3 kB / 493.9 MB, free: 3.043 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002289/0.1458, allocations: 169.3 kB / 494.1 MB, free: 2.871 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001185/0.147, allocations: 0.7986 MB / 494.9 MB, free: 2.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.1471, allocations: 0 / 494.9 MB, free: 2.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1471, allocations: 0 / 494.9 MB, free: 2.07 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.1471, allocations: 4 kB / 494.9 MB, free: 2.066 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.002488/0.1496, allocations: 0.8958 MB / 495.8 MB, free: 1.117 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.1496, allocations: 12.03 kB / 495.8 MB, free: 1.105 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001869/0.1498, allocations: 102.5 kB / 495.9 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006383/0.1505, allocations: 111.1 kB / 496 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001735/0.1522, allocations: 0.5876 MB / 496.6 MB, free: 264 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.1524, allocations: 79.02 kB / 496.7 MB, free: 176 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001844/0.1526, allocations: 63.97 kB / 496.8 MB, free: 112 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001966/0.1546, allocations: 0.7943 MB / 497.5 MB, free: 15.28 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.531e-05/0.1546, allocations: 0 / 497.5 MB, free: 15.28 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/0.1547, allocations: 31.97 kB / 497.6 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002169/0.155, allocations: 57.17 kB / 497.6 MB, free: 15.19 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/0.1566, allocations: 0.5789 MB / 498.2 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006552/0.1631, allocations: 2.935 MB / 0.4894 GB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.1645, allocations: 426.1 kB / 0.4898 GB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.066e-05/0.1646, allocations: 8.391 kB / 0.4898 GB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000755/0.1654, allocations: 348.2 kB / 0.4902 GB, free: 10.76 MB / 346.7 MB Notification: Performance of pre-optimization done (n=42): time 2.795e-06/0.1654, allocations: 0 / 0.4902 GB, free: 10.76 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.005058/0.1704, allocations: 2.112 MB / 0.4922 GB, free: 8.473 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.1706, allocations: 140.4 kB / 0.4923 GB, free: 8.305 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007506/0.1714, allocations: 449.8 kB / 0.4928 GB, free: 7.855 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.655e-05/0.1714, allocations: 37.7 kB / 0.4928 GB, free: 7.812 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003273/0.1718, allocations: 366.4 kB / 0.4932 GB, free: 7.453 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002086/0.172, allocations: 157.8 kB / 0.4933 GB, free: 7.297 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.086e-05/0.1721, allocations: 12 kB / 0.4933 GB, free: 7.285 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.1723, allocations: 334.8 kB / 0.4936 GB, free: 6.949 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006234/0.1729, allocations: 229.2 kB / 0.4939 GB, free: 6.727 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007483/0.1737, allocations: 386.3 kB / 0.4942 GB, free: 6.281 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0035/0.1772, allocations: 0.7502 MB / 0.495 GB, free: 5.508 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.76e-06/0.1772, allocations: 3.938 kB / 0.495 GB, free: 5.504 MB / 346.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00296/0.1802, allocations: 0.9399 MB / 0.4959 GB, free: 4.547 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.73e-05/0.1803, allocations: 37.64 kB / 0.4959 GB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/0.1803, allocations: 8 kB / 0.4959 GB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001683/0.182, allocations: 301.7 kB / 0.4962 GB, free: 4.195 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001881/0.184, allocations: 179.7 kB / 0.4964 GB, free: 4.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/0.1943, allocations: 4.985 MB / 0.5013 GB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005954/0.1949, allocations: 27.98 kB / 0.5013 GB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.756e-05/0.195, allocations: 24 kB / 0.5013 GB, free: 14.71 MB / 362.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$PRE.relay1.y,relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * 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%) 4} * Non-linear torn systems: 1 {3 15} Notification: Performance of prepare postOptimizeDAE: time 0.0006074/0.1956, allocations: 295.3 kB / 0.5016 GB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.1957, allocations: 51.34 kB / 0.5016 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001998/0.1977, allocations: 0.8178 MB / 0.5024 GB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.1978, allocations: 8 kB / 0.5024 GB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.228e-06/0.1978, allocations: 4 kB / 0.5024 GB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.1978, allocations: 4.234 kB / 0.5024 GB, free: 13.47 MB / 362.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 postOpt removeSimpleEquations (simulation): time 0.003692/0.2015, allocations: 1.677 MB / 0.5041 GB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.238e-06/0.2015, allocations: 8 kB / 0.5041 GB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0024/0.2039, allocations: 191.9 kB / 0.5043 GB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003726/0.2043, allocations: 82.47 kB / 0.5044 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.887e-05/0.2044, allocations: 15.98 kB / 0.5044 GB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003877/0.2083, allocations: 3.961 MB / 0.5082 GB, free: 6.996 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.2083, allocations: 3.938 kB / 0.5082 GB, free: 6.992 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002421/0.2108, allocations: 1.179 MB / 0.5094 GB, free: 5.711 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003355/0.2111, allocations: 160.5 kB / 0.5095 GB, free: 5.535 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.2112, allocations: 20 kB / 0.5096 GB, free: 5.516 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004579/0.2117, allocations: 19.98 kB / 0.5096 GB, free: 5.496 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.2119, allocations: 35.91 kB / 0.5096 GB, free: 5.461 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.195e-05/0.2119, allocations: 15.98 kB / 0.5096 GB, free: 5.445 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005523/0.2125, allocations: 311.1 kB / 0.5099 GB, free: 5.141 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.056e-06/0.2125, allocations: 3.938 kB / 0.5099 GB, free: 5.137 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009849/0.2135, allocations: 167.9 kB / 0.5101 GB, free: 4.973 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(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.002868/0.2164, allocations: 1.994 MB / 0.512 GB, free: 2.875 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002817/0.2192, allocations: 0.9881 MB / 0.513 GB, free: 1.848 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.2192, allocations: 0 / 0.513 GB, free: 1.848 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.2205, allocations: 0.6447 MB / 0.5136 GB, free: 1.152 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008758/0.2214, allocations: 109.8 kB / 0.5137 GB, free: 1.047 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2975/0.5189, allocations: 7.675 MB / 0.5212 GB, free: 48.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006981/0.5197, allocations: 0.9953 MB / 0.5222 GB, free: 47.38 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004926/0.5202, allocations: 218.7 kB / 0.5224 GB, free: 47.37 MB / 362.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5202, allocations: 0 / 0.5224 GB, free: 47.37 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.907/3.428, allocations: 17.11 MB / 0.5391 GB, free: 40.56 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1)