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.0009384/0.0009384, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.001086/0.001086, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.395/1.395, allocations: 223.3 MB / 241.2 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2903/0.2903, allocations: 38.08 MB / 330.4 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003306/0.0003306, allocations: 12 kB / 400.2 MB, free: 9.188 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3239, allocations: 59.17 MB / 459.3 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.005829/0.3298, allocations: 5.38 MB / 464.7 MB, free: 26.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006664/0.3365, allocations: 3.956 MB / 468.7 MB, free: 23.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006685/0.3372, allocations: 34 kB / 468.7 MB, free: 23.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009263/0.3465, allocations: 4.371 MB / 473.1 MB, free: 22.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001541/0.348, allocations: 357 kB / 473.4 MB, free: 22.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008188/0.3489, allocations: 194.8 kB / 473.6 MB, free: 22.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002663/0.3515, allocations: 1.765 MB / 475.4 MB, free: 21.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001056/0.3526, allocations: 0.6341 MB / 476 MB, free: 21.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004972/0.3531, allocations: 296.2 kB / 476.3 MB, free: 20.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005317/0.3537, allocations: 392.9 kB / 476.7 MB, free: 20.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.017e-05/0.3537, allocations: 29.53 kB / 476.7 MB, free: 20.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001574/0.3539, allocations: 33.66 kB / 476.7 MB, free: 20.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002264/0.3541, allocations: 216.2 kB / 477 MB, free: 20.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.3543, allocations: 143.2 kB / 477.1 MB, free: 20.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005549/0.3548, allocations: 0.6313 MB / 477.7 MB, free: 20 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.3548, allocations: 1.344 kB / 477.7 MB, free: 20 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3549, allocations: 0 / 477.7 MB, free: 20 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.3549, allocations: 0 / 477.7 MB, free: 20 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.001339/0.3562, allocations: 0.7639 MB / 478.5 MB, free: 19.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.3563, allocations: 8.625 kB / 478.5 MB, free: 19.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.3564, allocations: 91.88 kB / 478.6 MB, free: 19.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002707/0.3567, allocations: 65.97 kB / 478.7 MB, free: 19.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008657/0.3575, allocations: 0.5394 MB / 479.2 MB, free: 18.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.974e-05/0.3576, allocations: 31.5 kB / 479.2 MB, free: 18.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.682e-05/0.3577, allocations: 57.92 kB / 479.3 MB, free: 18.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009158/0.3586, allocations: 0.6254 MB / 479.9 MB, free: 18.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/0.3586, allocations: 6.703 kB / 479.9 MB, free: 18.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.29e-05/0.3587, allocations: 15.38 kB / 479.9 MB, free: 18.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001148/0.3588, allocations: 46.41 kB / 480 MB, free: 18.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007178/0.3595, allocations: 462.8 kB / 480.4 MB, free: 18.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002618/0.3622, allocations: 2.519 MB / 482.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003907/0.3626, allocations: 288.4 kB / 483.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.3627, allocations: 137.7 kB / 483.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.3628, allocations: 4 kB / 483.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.3628, allocations: 46.98 kB / 483.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.916e-06/0.3628, allocations: 0 / 483.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002604/0.3654, allocations: 1.583 MB / 485 MB, free: 13.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.3655, allocations: 81.11 kB / 485.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003572/0.3659, allocations: 413.8 kB / 485.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/0.3659, allocations: 29.73 kB / 485.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.366, allocations: 299.5 kB / 485.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.415e-05/0.3661, allocations: 118.4 kB / 485.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.958e-05/0.3662, allocations: 12 kB / 485.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.144e-05/0.3662, allocations: 354.7 kB / 486.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/0.3664, allocations: 136.8 kB / 486.4 MB, free: 12.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002206/0.3666, allocations: 272 kB / 486.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002264/0.3669, allocations: 192.1 kB / 486.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.3669, allocations: 4 kB / 486.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008356/0.3677, allocations: 0.6674 MB / 487.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.3677, allocations: 8 kB / 487.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.3678, allocations: 4 kB / 487.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003651/0.3681, allocations: 153.8 kB / 487.7 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002664/0.3684, allocations: 71.89 kB / 487.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00242/0.3708, allocations: 3.393 MB / 491.2 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002868/0.3711, allocations: 19.98 kB / 491.2 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.25e-05/0.3712, allocations: 20 kB / 491.2 MB, free: 7.234 MB / 350.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.0002961/0.3715, allocations: 239.9 kB / 491.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.391e-05/0.3716, allocations: 43.44 kB / 491.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008147/0.3724, allocations: 0.5791 MB / 492 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.3724, allocations: 4 kB / 492.1 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0005799/0.373, allocations: 482.3 kB / 492.5 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.373, allocations: 7.922 kB / 492.5 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001279/0.3743, allocations: 0.9894 MB / 493.5 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.3743, allocations: 4.031 kB / 493.5 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001758/0.3745, allocations: 47.91 kB / 493.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002247/0.3747, allocations: 88.77 kB / 493.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.052e-05/0.3747, allocations: 8 kB / 493.7 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001376/0.3761, allocations: 1.855 MB / 495.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3761, allocations: 8.094 kB / 495.5 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000701/0.3768, allocations: 0.6322 MB / 496.2 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001287/0.377, allocations: 148.6 kB / 496.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.643e-05/0.377, allocations: 8 kB / 496.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001698/0.3772, allocations: 8 kB / 496.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.198e-05/0.3773, allocations: 19.97 kB / 496.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/0.3773, allocations: 8 kB / 496.3 MB, free: 1.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002682/0.3776, allocations: 299.1 kB / 496.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.12e-07/0.3776, allocations: 0 / 496.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000556/0.3781, allocations: 123.9 kB / 496.8 MB, free: 1.336 MB / 350.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.0008903/0.379, allocations: 1.204 MB / 498 MB, free: 88 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009617/0.38, allocations: 0.6114 MB / 498.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.38, allocations: 0 / 498.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004206/0.3804, allocations: 298.6 kB / 498.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000631/0.3811, allocations: 112.7 kB / 499 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00516/0.3863, allocations: 3.305 MB / 0.4905 GB, free: 11.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005704/0.3869, allocations: 0.9205 MB / 0.4914 GB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003009/0.3872, allocations: 76.31 kB / 0.4915 GB, free: 10.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002538/0.3874, allocations: 175.4 kB / 0.4917 GB, free: 10.39 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3874, allocations: 0 / 0.4917 GB, free: 10.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02727/0.4147, allocations: 9.905 MB / 0.5013 GB, free: 0.7148 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001892/0.415, allocations: 229.1 kB / 0.5015 GB, free: 472 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.99/2.405, allocations: 0 / 0.5015 GB, free: 472 kB / 366.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