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.0009724/0.0009724, allocations: 175.2 kB / 16.07 MB, free: 5.723 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.182/1.182, allocations: 205.4 MB / 222.2 MB, free: 9.02 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.0007213/0.0007213, allocations: 84.92 kB / 270.6 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1622/0.1622, allocations: 38.07 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00034/0.0003401, allocations: 19.98 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.2383, allocations: 56.32 MB / 479.7 MB, free: 9.219 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.006125/0.2444, allocations: 5.415 MB / 485.1 MB, free: 5.629 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006095/0.2506, allocations: 3.978 MB / 489.1 MB, free: 2.855 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000842/0.2515, allocations: 34.84 kB / 489.2 MB, free: 2.84 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009937/0.2614, allocations: 4.524 MB / 493.7 MB, free: 1.699 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001261/0.2627, allocations: 357.4 kB / 494 MB, free: 1.508 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008711/0.2636, allocations: 202.3 kB / 494.2 MB, free: 1.414 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002936/0.2666, allocations: 1.764 MB / 496 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001334/0.2679, allocations: 0.687 MB / 496.7 MB, free: 456 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006291/0.2685, allocations: 300.6 kB / 497 MB, free: 300 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008596/0.2694, allocations: 393 kB / 497.4 MB, free: 84 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.2696, allocations: 28.17 kB / 497.4 MB, free: 80 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003533/0.2699, allocations: 36.92 kB / 497.4 MB, free: 72 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003802/0.2703, allocations: 213.3 kB / 497.6 MB, free: 15.94 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005384/0.2709, allocations: 304.5 kB / 497.9 MB, free: 15.73 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007207/0.2716, allocations: 0.6232 MB / 498.5 MB, free: 15.29 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2716, allocations: 0 / 498.5 MB, free: 15.29 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2716, allocations: 4 kB / 498.6 MB, free: 15.29 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.696e-05/0.2717, allocations: 1.219 kB / 498.6 MB, free: 15.29 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.001666/0.2733, allocations: 0.7606 MB / 499.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.2734, allocations: 9.875 kB / 499.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001693/0.2736, allocations: 88.17 kB / 499.4 MB, free: 14.56 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003163/0.2739, allocations: 69.42 kB / 499.5 MB, free: 14.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.2751, allocations: 0.5406 MB / 0.4883 GB, free: 14.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.677e-05/0.2751, allocations: 38.95 kB / 0.4883 GB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.507e-05/0.2752, allocations: 54.45 kB / 0.4884 GB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.2763, allocations: 0.6221 MB / 0.489 GB, free: 13.61 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.496e-05/0.2763, allocations: 1.281 kB / 0.489 GB, free: 13.61 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.789e-05/0.2764, allocations: 25.3 kB / 0.489 GB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001298/0.2765, allocations: 50.38 kB / 0.4891 GB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007784/0.2773, allocations: 458 kB / 0.4895 GB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003052/0.2804, allocations: 2.522 MB / 0.492 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004245/0.2808, allocations: 285.9 kB / 0.4922 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002003/0.281, allocations: 143.3 kB / 0.4924 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.281, allocations: 7.062 kB / 0.4924 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/0.2811, allocations: 41.28 kB / 0.4924 GB, free: 10.9 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 1.623e-06/0.2811, allocations: 0 / 0.4924 GB, free: 10.9 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.002936/0.284, allocations: 1.539 MB / 0.4939 GB, free: 9.75 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.194e-05/0.2841, allocations: 84.64 kB / 0.494 GB, free: 9.652 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000494/0.2846, allocations: 414.8 kB / 0.4944 GB, free: 9.398 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.736e-05/0.2846, allocations: 35.05 kB / 0.4944 GB, free: 9.359 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002299/0.2849, allocations: 303.5 kB / 0.4947 GB, free: 9.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.285, allocations: 112.2 kB / 0.4948 GB, free: 8.992 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.996e-05/0.285, allocations: 6.125 kB / 0.4948 GB, free: 8.988 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.2852, allocations: 362.1 kB / 0.4952 GB, free: 8.637 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002226/0.2854, allocations: 125.5 kB / 0.4953 GB, free: 8.578 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/0.2857, allocations: 280.3 kB / 0.4956 GB, free: 8.32 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006166/0.2863, allocations: 445.7 kB / 0.496 GB, free: 7.977 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.2864, allocations: 1.938 kB / 0.496 GB, free: 7.977 MB / 330.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001166/0.2875, allocations: 0.6756 MB / 0.4967 GB, free: 7.543 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.2876, allocations: 14.75 kB / 0.4967 GB, free: 7.535 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.2876, allocations: 5.531 kB / 0.4967 GB, free: 7.535 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004493/0.288, allocations: 144.7 kB / 0.4968 GB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002777/0.2883, allocations: 73.39 kB / 0.4969 GB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003283/0.2916, allocations: 3.402 MB / 0.5002 GB, free: 4.273 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.2919, allocations: 22.8 kB / 0.5002 GB, free: 4.258 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.891e-05/0.2919, allocations: 23.03 kB / 0.5003 GB, free: 4.25 MB / 330.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.0003085/0.2923, allocations: 231 kB / 0.5005 GB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.5e-05/0.2923, allocations: 48.66 kB / 0.5005 GB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.2934, allocations: 0.5785 MB / 0.5011 GB, free: 3.625 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.2934, allocations: 3.312 kB / 0.5011 GB, free: 3.625 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0008634/0.2943, allocations: 486.4 kB / 0.5016 GB, free: 3.285 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.575e-06/0.2943, allocations: 3.984 kB / 0.5016 GB, free: 3.281 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00158/0.2959, allocations: 0.9921 MB / 0.5025 GB, free: 2.453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.2959, allocations: 4 kB / 0.5025 GB, free: 2.449 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001946/0.2961, allocations: 39.97 kB / 0.5026 GB, free: 2.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002676/0.2964, allocations: 88.77 kB / 0.5026 GB, free: 2.32 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.2964, allocations: 8 kB / 0.5027 GB, free: 2.312 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001858/0.2983, allocations: 1.859 MB / 0.5045 GB, free: 328 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.2983, allocations: 7.875 kB / 0.5045 GB, free: 320 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008965/0.2992, allocations: 0.636 MB / 0.5051 GB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001822/0.2994, allocations: 144.5 kB / 0.5052 GB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.561e-05/0.2995, allocations: 8 kB / 0.5052 GB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001825/0.2996, allocations: 7.938 kB / 0.5053 GB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.282e-05/0.2997, allocations: 35.84 kB / 0.5053 GB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.329e-05/0.2998, allocations: 11.98 kB / 0.5053 GB, free: 15.42 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003474/0.3001, allocations: 295.1 kB / 0.5056 GB, free: 15.13 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3001, allocations: 4.062 kB / 0.5056 GB, free: 15.13 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005703/0.3007, allocations: 124 kB / 0.5057 GB, free: 15.01 MB / 346.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.001194/0.3019, allocations: 1.188 MB / 0.5069 GB, free: 13.78 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001048/0.303, allocations: 0.6069 MB / 0.5075 GB, free: 13.14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.303, allocations: 4 kB / 0.5075 GB, free: 13.14 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004374/0.3034, allocations: 303.2 kB / 0.5077 GB, free: 12.83 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006871/0.3041, allocations: 105 kB / 0.5078 GB, free: 12.73 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005023/0.3092, allocations: 3.356 MB / 0.5111 GB, free: 9.219 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004944/0.3097, allocations: 0.9206 MB / 0.512 GB, free: 8.273 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002464/0.3099, allocations: 175.4 kB / 0.5122 GB, free: 8.102 MB / 346.7 MB Notification: Performance of SimCode: time 8.41e-07/0.3099, allocations: 4 kB / 0.5122 GB, free: 8.098 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.695/4.005, allocations: 11.65 MB / 0.5236 GB, free: 12.42 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)