Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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 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.ASMcharacteristic,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,fileNamePrefix="PowerSystems_latest_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.0008969/0.000897, allocations: 96.25 kB / 16.31 MB, free: 5.996 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.0009177/0.0009178, allocations: 186.4 kB / 17.2 MB, free: 5.914 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.233/1.233, allocations: 223.2 MB / 241.1 MB, free: 368 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1611/0.1611, allocations: 38.09 MB / 330.3 MB, free: 8.953 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002911/0.0002912, allocations: 9.562 kB / 400.1 MB, free: 34.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09184/0.09214, allocations: 59.16 MB / 459.2 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.00523/0.0974, allocations: 5.148 MB / 464.4 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005291/0.1027, allocations: 3.915 MB / 468.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004503/0.1032, allocations: 31.81 kB / 468.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003929/0.1071, allocations: 1.663 MB / 470 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008288/0.108, allocations: 259.2 kB / 470.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005638/0.1086, allocations: 199.6 kB / 470.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005691/0.1091, allocations: 471.4 kB / 470.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008947/0.1101, allocations: 0.6265 MB / 471.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000269/0.1103, allocations: 251 kB / 471.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003122/0.1107, allocations: 255 kB / 472 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.758e-05/0.1107, allocations: 24 kB / 472 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.1108, allocations: 39.98 kB / 472.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001819/0.111, allocations: 195.5 kB / 472.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.1111, allocations: 141.4 kB / 472.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005332/0.1117, allocations: 0.6272 MB / 473 MB, free: 9.457 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.1117, allocations: 0 / 473 MB, free: 9.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1117, allocations: 0 / 473 MB, free: 9.457 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.1117, allocations: 0 / 473 MB, free: 9.457 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001376/0.1131, allocations: 0.7616 MB / 473.8 MB, free: 8.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.1131, allocations: 12.03 kB / 473.8 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.821e-05/0.1132, allocations: 90.5 kB / 473.9 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002477/0.1135, allocations: 71.16 kB / 474 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008898/0.1144, allocations: 0.5289 MB / 474.5 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.93e-05/0.1144, allocations: 33 kB / 474.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.27e-05/0.1145, allocations: 47.89 kB / 474.6 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008309/0.1153, allocations: 0.6335 MB / 475.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.1154, allocations: 0 / 475.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.517e-05/0.1154, allocations: 23.97 kB / 475.2 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001247/0.1156, allocations: 48.97 kB / 475.3 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006391/0.1162, allocations: 459.6 kB / 475.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002696/0.1189, allocations: 2.519 MB / 478.2 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003955/0.1193, allocations: 289.2 kB / 478.5 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.1193, allocations: 0 / 478.5 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/0.1194, allocations: 39.06 kB / 478.6 MB, free: 3.613 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 3.677e-06/0.1194, allocations: 0 / 478.6 MB, free: 3.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002669/0.1221, allocations: 1.54 MB / 480.1 MB, free: 1.957 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.42e-05/0.1221, allocations: 81.11 kB / 480.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004116/0.1225, allocations: 414 kB / 480.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.1226, allocations: 29.7 kB / 480.6 MB, free: 1.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001939/0.1228, allocations: 307.5 kB / 480.9 MB, free: 1.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.255e-05/0.1229, allocations: 110.4 kB / 481 MB, free: 1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.591e-05/0.1229, allocations: 4 kB / 481 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.123, allocations: 362.7 kB / 481.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.1232, allocations: 124.8 kB / 481.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002778/0.1235, allocations: 281.1 kB / 481.8 MB, free: 176 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002637/0.1238, allocations: 180.2 kB / 481.9 MB, free: 15.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1238, allocations: 4 kB / 482 MB, free: 15.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009633/0.1248, allocations: 0.675 MB / 482.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.1248, allocations: 8.406 kB / 482.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.1248, allocations: 4 kB / 482.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004001/0.1252, allocations: 149.6 kB / 482.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002818/0.1255, allocations: 79.84 kB / 482.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002994/0.1285, allocations: 3.452 MB / 486.3 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002389/0.1288, allocations: 12 kB / 486.3 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.442e-05/0.1288, allocations: 28.05 kB / 486.4 MB, free: 11.28 MB / 366.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.0003148/0.1291, allocations: 233.6 kB / 486.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.51e-05/0.1292, allocations: 47.44 kB / 486.6 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009004/0.1301, allocations: 0.5791 MB / 487.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1301, allocations: 4 kB / 487.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0006714/0.1308, allocations: 484 kB / 487.7 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.1308, allocations: 0 / 487.7 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/0.1322, allocations: 0.998 MB / 488.7 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.1322, allocations: 3.953 kB / 488.7 MB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001876/0.1324, allocations: 43.91 kB / 488.7 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002523/0.1327, allocations: 88.77 kB / 488.8 MB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.1327, allocations: 8 kB / 488.8 MB, free: 8.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001761/0.1345, allocations: 1.909 MB / 490.7 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1345, allocations: 0 / 490.7 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008717/0.1354, allocations: 0.6895 MB / 491.4 MB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001441/0.1355, allocations: 140.6 kB / 491.6 MB, free: 5.719 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.753e-05/0.1356, allocations: 8 kB / 491.6 MB, free: 5.711 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000178/0.1358, allocations: 4 kB / 491.6 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.967e-05/0.1358, allocations: 23.92 kB / 491.6 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.085e-05/0.1358, allocations: 16.06 kB / 491.6 MB, free: 5.668 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003041/0.1361, allocations: 299.1 kB / 491.9 MB, free: 5.375 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1362, allocations: 0 / 491.9 MB, free: 5.375 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004885/0.1366, allocations: 120 kB / 492 MB, free: 5.258 MB / 366.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.001196/0.1379, allocations: 1.505 MB / 493.5 MB, free: 3.691 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009023/0.1388, allocations: 0.6115 MB / 494.1 MB, free: 3.055 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.1388, allocations: 4.062 kB / 494.1 MB, free: 3.051 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003996/0.1392, allocations: 294.7 kB / 494.4 MB, free: 2.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004856/0.1397, allocations: 102 kB / 494.5 MB, free: 2.652 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005395/0.1451, allocations: 6.279 MB / 0.4891 GB, free: 12.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004772/0.1456, allocations: 0.9399 MB / 0.49 GB, free: 11.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002489/0.1458, allocations: 76.34 kB / 0.4901 GB, free: 11.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002152/0.1461, allocations: 179.4 kB / 0.4902 GB, free: 10.98 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1461, allocations: 0 / 0.4902 GB, free: 10.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04452/0.1906, allocations: 9.881 MB / 0.4999 GB, free: 1.328 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002039/0.1908, allocations: 212.1 kB / 0.5001 GB, free: 1.086 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.674/1.865, allocations: 0 / 0.5001 GB, free: 1.086 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.mat does not exist to compare? outputFormat=mat