Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.ASMcharacteristic,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",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.001135/0.001135, allocations: 94.55 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.001384/0.001384, allocations: 181.3 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.448/1.448, allocations: 205.4 MB / 223.4 MB, free: 5.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3094/0.3094, allocations: 38.05 MB / 309.7 MB, free: 8.859 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005329/0.000533, allocations: 22.19 kB / 376.6 MB, free: 15.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1089, allocations: 56.33 MB / 432.9 MB, free: 6.645 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.005612/0.1146, allocations: 5.146 MB / 438.1 MB, free: 1.473 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005965/0.1206, allocations: 3.954 MB / 442 MB, free: 13.51 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005557/0.1212, allocations: 31.81 kB / 442 MB, free: 13.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004139/0.1254, allocations: 1.657 MB / 443.7 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008981/0.1263, allocations: 259.2 kB / 444 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005708/0.1269, allocations: 195.7 kB / 444.1 MB, free: 11.37 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005484/0.1274, allocations: 467.4 kB / 444.6 MB, free: 10.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000914/0.1283, allocations: 0.6342 MB / 445.2 MB, free: 10.24 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002924/0.1286, allocations: 255 kB / 445.5 MB, free: 9.992 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003267/0.129, allocations: 247 kB / 445.7 MB, free: 9.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.246e-05/0.129, allocations: 28 kB / 445.8 MB, free: 9.723 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.1292, allocations: 39.98 kB / 445.8 MB, free: 9.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001879/0.1294, allocations: 191.5 kB / 446 MB, free: 9.496 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001219/0.1295, allocations: 141.4 kB / 446.1 MB, free: 9.352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005514/0.1301, allocations: 0.6311 MB / 446.8 MB, free: 8.719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.175e-06/0.1301, allocations: 4 kB / 446.8 MB, free: 8.715 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1301, allocations: 0 / 446.8 MB, free: 8.715 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1301, allocations: 0 / 446.8 MB, free: 8.715 MB / 382.1 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.001283/0.1314, allocations: 0.7654 MB / 447.5 MB, free: 7.898 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.1314, allocations: 8.031 kB / 447.5 MB, free: 7.891 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000112/0.1315, allocations: 94.47 kB / 447.6 MB, free: 7.789 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002755/0.1318, allocations: 63.25 kB / 447.7 MB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009335/0.1328, allocations: 0.5367 MB / 448.2 MB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.991e-05/0.1328, allocations: 33 kB / 448.3 MB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.571e-05/0.1329, allocations: 43.98 kB / 448.3 MB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008502/0.1337, allocations: 0.6257 MB / 448.9 MB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.675e-05/0.1338, allocations: 7.984 kB / 448.9 MB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.82e-05/0.1338, allocations: 23.92 kB / 449 MB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001216/0.134, allocations: 48.92 kB / 449 MB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006826/0.1347, allocations: 463.6 kB / 449.5 MB, free: 5.879 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002808/0.1375, allocations: 2.515 MB / 452 MB, free: 3.227 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004205/0.1379, allocations: 285.2 kB / 452.2 MB, free: 2.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.882e-05/0.1379, allocations: 11.98 kB / 452.3 MB, free: 2.918 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.138, allocations: 38.56 kB / 452.3 MB, free: 2.871 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 1.603e-06/0.138, allocations: 0 / 452.3 MB, free: 2.871 MB / 382.1 MB Notification: Performance of matching and sorting (n=32): time 0.002729/0.1407, allocations: 1.528 MB / 453.8 MB, free: 1.227 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.1408, allocations: 81.11 kB / 453.9 MB, free: 1.129 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004195/0.1412, allocations: 413.9 kB / 454.3 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.106e-05/0.1413, allocations: 37.7 kB / 454.3 MB, free: 0.668 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002057/0.1415, allocations: 299.6 kB / 454.6 MB, free: 380 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.493e-05/0.1416, allocations: 110.4 kB / 454.7 MB, free: 268 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.04e-05/0.1416, allocations: 8 kB / 454.8 MB, free: 260 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.1942/0.3358, allocations: 362.7 kB / 455.1 MB, free: 51.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000317/0.3362, allocations: 121.9 kB / 455.2 MB, free: 51.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.3364, allocations: 278.2 kB / 455.5 MB, free: 51.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002376/0.3367, allocations: 181.8 kB / 455.7 MB, free: 51.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.3367, allocations: 3.312 kB / 455.7 MB, free: 51.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009967/0.3377, allocations: 0.6838 MB / 456.4 MB, free: 51.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.3377, allocations: 6.438 kB / 456.4 MB, free: 51.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.3377, allocations: 10.44 kB / 456.4 MB, free: 51.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004009/0.3381, allocations: 144 kB / 456.5 MB, free: 51.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002802/0.3384, allocations: 76.11 kB / 456.6 MB, free: 51.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002279/0.3407, allocations: 3.46 MB / 460.1 MB, free: 48.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.341, allocations: 11.16 kB / 460.1 MB, free: 48.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.999e-05/0.341, allocations: 24.34 kB / 460.1 MB, free: 48.77 MB / 382.1 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.0002512/0.3413, allocations: 231.4 kB / 460.3 MB, free: 48.65 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.689e-05/0.3413, allocations: 49.09 kB / 460.4 MB, free: 48.65 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007638/0.3421, allocations: 0.5642 MB / 460.9 MB, free: 48.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.3421, allocations: 7.203 kB / 460.9 MB, free: 48.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0005881/0.3427, allocations: 492.6 kB / 461.4 MB, free: 48.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3427, allocations: 4.312 kB / 461.4 MB, free: 48.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.3439, allocations: 0.9866 MB / 462.4 MB, free: 47.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.3439, allocations: 2.844 kB / 462.4 MB, free: 47.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.3441, allocations: 44.08 kB / 462.5 MB, free: 47.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002218/0.3444, allocations: 94.28 kB / 462.5 MB, free: 47.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.3444, allocations: 13.47 kB / 462.6 MB, free: 47.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001342/0.3457, allocations: 1.891 MB / 464.4 MB, free: 46.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.3458, allocations: 3.062 kB / 464.5 MB, free: 46.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007951/0.3466, allocations: 0.6926 MB / 465.1 MB, free: 46.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001425/0.3467, allocations: 138.6 kB / 465.3 MB, free: 46.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.968e-05/0.3468, allocations: 11.66 kB / 465.3 MB, free: 46.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/0.347, allocations: 7.219 kB / 465.3 MB, free: 46.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.988e-05/0.347, allocations: 27.92 kB / 465.3 MB, free: 46.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.347, allocations: 11.83 kB / 465.3 MB, free: 46.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002728/0.3473, allocations: 294.4 kB / 465.6 MB, free: 46.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3473, allocations: 0 / 465.6 MB, free: 46.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004496/0.3478, allocations: 119.9 kB / 465.7 MB, free: 46.23 MB / 382.1 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.000894/0.3487, allocations: 1.515 MB / 467.3 MB, free: 45.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007395/0.3494, allocations: 0.6158 MB / 467.9 MB, free: 44.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3494, allocations: 0 / 467.9 MB, free: 44.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003416/0.3498, allocations: 297.2 kB / 468.2 MB, free: 44.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004632/0.3503, allocations: 99.33 kB / 468.3 MB, free: 44.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003984/0.3543, allocations: 6.284 MB / 474.5 MB, free: 39.76 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.3546, allocations: 0.9368 MB / 475.5 MB, free: 39.03 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002218/0.3548, allocations: 73.8 kB / 475.6 MB, free: 39.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001694/0.355, allocations: 174.8 kB / 475.7 MB, free: 38.88 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.355, allocations: 3.312 kB / 475.7 MB, free: 38.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01899/0.374, allocations: 9.879 MB / 485.6 MB, free: 38.06 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001891/0.3742, allocations: 203.6 kB / 485.8 MB, free: 37.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.706/2.08, allocations: 0 / 485.8 MB, free: 37.82 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) Environment - environmentSimulation: