Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.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.ASMav_icontrol,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav_icontrol",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav_icontrol",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.0008456/0.0008456, allocations: 87.41 kB / 16.65 MB, free: 6.535 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.00103/0.001031, allocations: 177.7 kB / 17.56 MB, free: 6.18 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.271/1.271, allocations: 223.2 MB / 241.6 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1674/0.1674, allocations: 38.1 MB / 330.8 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003344/0.0003345, allocations: 8 kB / 400.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09377/0.09412, allocations: 59.17 MB / 460 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.008229/0.1024, allocations: 7.874 MB / 467.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008168/0.1106, allocations: 5.432 MB / 473.3 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009841/0.1116, allocations: 51.69 kB / 473.3 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009032/0.1207, allocations: 5.458 MB / 478.8 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001383/0.1221, allocations: 0.4978 MB / 479.3 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.1233, allocations: 0.5259 MB / 479.8 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003403/0.1267, allocations: 3.221 MB / 483 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001445/0.1282, allocations: 1.176 MB / 484.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000801/0.129, allocations: 0.5755 MB / 484.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001021/0.13, allocations: 0.8016 MB / 485.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001319/0.1302, allocations: 56 kB / 485.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003706/0.1306, allocations: 124 kB / 485.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004317/0.131, allocations: 434.6 kB / 486.2 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005906/0.1316, allocations: 0.6156 MB / 486.8 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001565/0.1332, allocations: 1.767 MB / 488.6 MB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1332, allocations: 0 / 488.6 MB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1332, allocations: 3.938 kB / 488.6 MB, free: 10.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.439e-05/0.1332, allocations: 0 / 488.6 MB, free: 10.23 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 231 * Number of variables: 231 Notification: Performance of Generate backend data structure: time 0.003067/0.1363, allocations: 1.464 MB / 490 MB, free: 8.715 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.1363, allocations: 8.031 kB / 490.1 MB, free: 8.707 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001939/0.1365, allocations: 147.9 kB / 490.2 MB, free: 8.555 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004069/0.1369, allocations: 147.2 kB / 490.3 MB, free: 8.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001957/0.1389, allocations: 1.062 MB / 491.4 MB, free: 7.305 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.168e-05/0.139, allocations: 65.98 kB / 491.5 MB, free: 7.238 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.1391, allocations: 91.91 kB / 491.6 MB, free: 7.148 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001981/0.1411, allocations: 1.328 MB / 492.9 MB, free: 5.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.949e-05/0.1412, allocations: 11.94 kB / 492.9 MB, free: 5.758 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001103/0.1413, allocations: 43.97 kB / 492.9 MB, free: 5.715 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003207/0.1416, allocations: 85.94 kB / 493 MB, free: 5.629 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001765/0.1434, allocations: 1.144 MB / 494.2 MB, free: 4.488 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007097/0.1505, allocations: 4.978 MB / 499.1 MB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001443/0.152, allocations: 0.9469 MB / 0.4884 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007964/0.1528, allocations: 0.5354 MB / 0.4889 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.695e-05/0.1529, allocations: 20.59 kB / 0.4889 GB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009265/0.1538, allocations: 0.6217 MB / 0.4895 GB, free: 13.13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.856e-06/0.1538, allocations: 0 / 0.4895 GB, free: 13.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=81): time 0.008598/0.1624, allocations: 4.183 MB / 0.4936 GB, free: 8.785 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.846e-05/0.1625, allocations: 170.8 kB / 0.4938 GB, free: 8.582 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.1636, allocations: 0.8462 MB / 0.4946 GB, free: 7.711 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.741e-05/0.1637, allocations: 41.7 kB / 0.4946 GB, free: 7.664 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003597/0.164, allocations: 0.5189 MB / 0.4951 GB, free: 7.137 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002445/0.1643, allocations: 291.8 kB / 0.4954 GB, free: 6.848 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.1644, allocations: 81.67 kB / 0.4955 GB, free: 6.762 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1645, allocations: 345.9 kB / 0.4958 GB, free: 6.418 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007474/0.1653, allocations: 485.7 kB / 0.4963 GB, free: 5.945 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008992/0.1662, allocations: 0.713 MB / 0.497 GB, free: 5.137 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001674/0.1679, allocations: 1.226 MB / 0.4982 GB, free: 3.816 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1679, allocations: 4 kB / 0.4982 GB, free: 3.812 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.00882/0.1767, allocations: 2.942 MB / 0.5011 GB, free: 0.832 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001784/0.1769, allocations: 298 kB / 0.5013 GB, free: 456 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.177, allocations: 8 kB / 0.5014 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1876/0.3646, allocations: 1.903 MB / 0.5032 GB, free: 54.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006663/0.3653, allocations: 141.8 kB / 0.5034 GB, free: 54.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01913/0.3844, allocations: 11.55 MB / 0.5146 GB, free: 50.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001139/0.3856, allocations: 60.55 kB / 0.5147 GB, free: 50 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002087/0.3858, allocations: 46.5 kB / 0.5147 GB, free: 49.99 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.3859, allocations: 4.5 kB / 0.5147 GB, free: 49.99 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008822/0.3947, allocations: 2.714 MB / 0.5174 GB, free: 49.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.785e-05/0.3948, allocations: 10.25 kB / 0.5174 GB, free: 49.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007999/0.4028, allocations: 1.854 MB / 0.5192 GB, free: 48.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000633/0.4034, allocations: 138.6 kB / 0.5193 GB, free: 48.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01551/0.4189, allocations: 11.31 MB / 0.5304 GB, free: 40.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008235/0.4198, allocations: 63.17 kB / 0.5304 GB, free: 40.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/0.4199, allocations: 47.98 kB / 0.5305 GB, free: 40.84 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,$whenCondition1,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,40)} Notification: Performance of prepare postOptimizeDAE: time 0.0006132/0.4206, allocations: 444.3 kB / 0.5309 GB, free: 40.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.4207, allocations: 100.3 kB / 0.531 GB, free: 40.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002543/0.4233, allocations: 1.655 MB / 0.5326 GB, free: 38.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.4233, allocations: 12 kB / 0.5326 GB, free: 38.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.4233, allocations: 4.688 kB / 0.5326 GB, free: 38.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.4233, allocations: 3.984 kB / 0.5326 GB, free: 38.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003866/0.4272, allocations: 2.91 MB / 0.5355 GB, free: 35.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.4272, allocations: 0 / 0.5355 GB, free: 35.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008877/0.4281, allocations: 170.1 kB / 0.5356 GB, free: 35.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001187/0.4293, allocations: 406.3 kB / 0.536 GB, free: 35.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-05/0.4294, allocations: 27.98 kB / 0.5361 GB, free: 35.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003927/0.4333, allocations: 6.292 MB / 0.5422 GB, free: 28.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4334, allocations: 0 / 0.5422 GB, free: 28.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002935/0.4363, allocations: 2.308 MB / 0.5445 GB, free: 25.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003332/0.4367, allocations: 269.2 kB / 0.5447 GB, free: 25.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001647/0.4368, allocations: 35.98 kB / 0.5447 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006404/0.4375, allocations: 48.8 kB / 0.5448 GB, free: 25.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/0.4376, allocations: 64.91 kB / 0.5449 GB, free: 25.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.353e-05/0.4377, allocations: 31.98 kB / 0.5449 GB, free: 25.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006793/0.4384, allocations: 0.5815 MB / 0.5455 GB, free: 24.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4384, allocations: 4 kB / 0.5455 GB, free: 24.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001987/0.4404, allocations: 0.5497 MB / 0.546 GB, free: 24.21 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (asm_ctrl.rotor.phi,asm_ctrl.rotor.w,asm_ctrl.motor.i[3],asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rd[2],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.psi_rq[2],asm_ctrl.motor.phiRotorflux,tabLoad.s,PI_i_q.I.y) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (1,3,100.0%), (2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003969/0.4444, allocations: 3.17 MB / 0.5491 GB, free: 21.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005421/0.4498, allocations: 3.21 MB / 0.5522 GB, free: 17.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.4498, allocations: 0 / 0.5522 GB, free: 17.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001443/0.4513, allocations: 1.145 MB / 0.5533 GB, free: 16.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001423/0.4527, allocations: 264.7 kB / 0.5536 GB, free: 16.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02565/0.4784, allocations: 14.34 MB / 0.5676 GB, free: 1.613 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006986/0.4791, allocations: 1.241 MB / 0.5688 GB, free: 352 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008797/0.48, allocations: 256.2 kB / 0.5691 GB, free: 92 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006903/0.4807, allocations: 436.9 kB / 0.5695 GB, free: 15.68 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4807, allocations: 0 / 0.5695 GB, free: 15.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06342/0.5442, allocations: 40.63 MB / 0.6092 GB, free: 7.32 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002342/0.5444, allocations: 282.2 kB / 0.6094 GB, free: 6.945 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.65/3.194, allocations: 0 / 0.6094 GB, free: 6.945 MB / 430.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav_icontrol_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav_icontrol.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol_res.mat does not exist to compare? outputFormat=mat