Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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.ASMcharacteristic,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",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.001518/0.001518, allocations: 186.5 kB / 15.77 MB, free: 5.984 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.956/1.956, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001143/0.001143, allocations: 98.81 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.2702/0.2702, allocations: 38.07 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00047/0.0004702, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1074, allocations: 56.34 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.008941/0.1164, allocations: 5.148 MB / 484.3 MB, free: 12.76 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01187/0.1283, allocations: 3.947 MB / 488.2 MB, free: 8.805 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008927/0.1292, allocations: 27.81 kB / 488.3 MB, free: 8.777 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00936/0.1386, allocations: 1.669 MB / 489.9 MB, free: 7.102 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00176/0.1405, allocations: 259.2 kB / 490.2 MB, free: 6.848 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001246/0.1418, allocations: 191.6 kB / 490.4 MB, free: 6.66 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001538/0.1433, allocations: 463.5 kB / 490.8 MB, free: 6.207 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001946/0.1453, allocations: 0.6342 MB / 491.5 MB, free: 5.543 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007828/0.1462, allocations: 251 kB / 491.7 MB, free: 5.297 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007446/0.1469, allocations: 259 kB / 492 MB, free: 5.043 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001446/0.1471, allocations: 24 kB / 492 MB, free: 5.02 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002653/0.1474, allocations: 28 kB / 492 MB, free: 4.992 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004213/0.1478, allocations: 203.5 kB / 492.2 MB, free: 4.793 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000273/0.1481, allocations: 141.4 kB / 492.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001386/0.1495, allocations: 0.635 MB / 493 MB, free: 4.012 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1496, allocations: 0 / 493 MB, free: 4.012 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1496, allocations: 0 / 493 MB, free: 4.012 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.168e-05/0.1496, allocations: 0 / 493 MB, free: 4.012 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.002866/0.1525, allocations: 0.7654 MB / 493.7 MB, free: 3.195 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.359e-05/0.1526, allocations: 8.031 kB / 493.7 MB, free: 3.188 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002627/0.1529, allocations: 82.52 kB / 493.8 MB, free: 3.098 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005883/0.1535, allocations: 83.19 kB / 493.9 MB, free: 3.016 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002204/0.1557, allocations: 0.5289 MB / 494.4 MB, free: 2.445 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.005e-05/0.1558, allocations: 33 kB / 494.5 MB, free: 2.414 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000198/0.1561, allocations: 47.98 kB / 494.5 MB, free: 2.367 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00216/0.1582, allocations: 0.618 MB / 495.1 MB, free: 1.707 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.361e-05/0.1584, allocations: 7.844 kB / 495.1 MB, free: 1.699 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001109/0.1585, allocations: 23.98 kB / 495.2 MB, free: 1.676 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002563/0.1588, allocations: 52.97 kB / 495.2 MB, free: 1.625 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001417/0.1602, allocations: 471.5 kB / 495.7 MB, free: 1.164 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00515/0.1654, allocations: 2.515 MB / 498.2 MB, free: 14.5 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007445/0.1662, allocations: 273.2 kB / 498.5 MB, free: 14.22 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.964e-05/0.1663, allocations: 8.547 kB / 498.5 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.1663, allocations: 34.56 kB / 498.5 MB, free: 14.17 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 3.466e-06/0.1663, allocations: 0 / 498.5 MB, free: 14.17 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.004867/0.1712, allocations: 1.545 MB / 0.4883 GB, free: 12.51 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.403e-05/0.1713, allocations: 85.11 kB / 0.4884 GB, free: 12.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008151/0.1722, allocations: 409.9 kB / 0.4888 GB, free: 12 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.692e-05/0.1723, allocations: 33.64 kB / 0.4888 GB, free: 11.96 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002895/0.1726, allocations: 341.9 kB / 0.4892 GB, free: 11.63 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.1727, allocations: 118.4 kB / 0.4893 GB, free: 11.51 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.054e-05/0.1728, allocations: 8 kB / 0.4893 GB, free: 11.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.1729, allocations: 326.8 kB / 0.4896 GB, free: 11.18 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003713/0.1733, allocations: 128.8 kB / 0.4897 GB, free: 11.05 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004876/0.1738, allocations: 274.8 kB / 0.49 GB, free: 10.72 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004799/0.1743, allocations: 188.1 kB / 0.4902 GB, free: 10.54 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.1743, allocations: 0 / 0.4902 GB, free: 10.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001913/0.1763, allocations: 0.66 MB / 0.4908 GB, free: 9.844 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.1763, allocations: 8 kB / 0.4908 GB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.1764, allocations: 4 kB / 0.4908 GB, free: 9.832 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007153/0.1771, allocations: 141.6 kB / 0.4909 GB, free: 9.688 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005515/0.1776, allocations: 75.89 kB / 0.491 GB, free: 9.613 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005235/0.1829, allocations: 3.463 MB / 0.4944 GB, free: 5.875 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004704/0.1834, allocations: 12 kB / 0.4944 GB, free: 5.863 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.146e-05/0.1835, allocations: 20 kB / 0.4944 GB, free: 5.844 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * 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 initialization (42): * Single equations (assignments): 40 * 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: 2 {(2,100.0%) 6,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005039/0.184, allocations: 241.6 kB / 0.4947 GB, free: 5.598 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.1841, allocations: 47.38 kB / 0.4947 GB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001598/0.1857, allocations: 0.5676 MB / 0.4953 GB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.1858, allocations: 4 kB / 0.4953 GB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.001211/0.187, allocations: 491.1 kB / 0.4957 GB, free: 4.434 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.187, allocations: 3.984 kB / 0.4957 GB, free: 4.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002543/0.1896, allocations: 0.9894 MB / 0.4967 GB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.1896, allocations: 8 kB / 0.4967 GB, free: 3.359 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003796/0.19, allocations: 39.91 kB / 0.4967 GB, free: 3.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004771/0.1905, allocations: 88.77 kB / 0.4968 GB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.399e-05/0.1906, allocations: 8 kB / 0.4968 GB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003257/0.1938, allocations: 1.902 MB / 0.4987 GB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/0.1939, allocations: 7.969 kB / 0.4987 GB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001677/0.1956, allocations: 0.6856 MB / 0.4994 GB, free: 444 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002699/0.1959, allocations: 136.5 kB / 0.4995 GB, free: 288 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.048e-05/0.196, allocations: 8 kB / 0.4995 GB, free: 280 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003327/0.1963, allocations: 16.05 kB / 0.4995 GB, free: 264 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.1964, allocations: 23.97 kB / 0.4995 GB, free: 240 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.604e-05/0.1965, allocations: 8 kB / 0.4996 GB, free: 232 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005675/0.1971, allocations: 299.1 kB / 0.4998 GB, free: 15.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1971, allocations: 0 / 0.4998 GB, free: 15.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008369/0.1979, allocations: 120 kB / 0.5 GB, free: 15.82 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.rotor.w) * 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 (22): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002151/0.2001, allocations: 1.509 MB / 0.5014 GB, free: 14.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.2018, allocations: 0.6148 MB / 0.502 GB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.2018, allocations: 0 / 0.502 GB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007793/0.2026, allocations: 298.6 kB / 0.5023 GB, free: 13.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009302/0.2036, allocations: 106.8 kB / 0.5024 GB, free: 13.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009915/0.2135, allocations: 6.323 MB / 0.5086 GB, free: 6.703 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007852/0.2144, allocations: 0.9323 MB / 0.5095 GB, free: 5.746 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004362/0.2149, allocations: 179.3 kB / 0.5097 GB, free: 5.57 MB / 362.7 MB Notification: Performance of SimCode: time 4.629e-06/0.2149, allocations: 0 / 0.5097 GB, free: 5.57 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.092/3.307, allocations: 12.16 MB / 0.5215 GB, free: 51.97 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1)