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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 115.6 kB / 20.43 MB, free: 1.465 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 212 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.496/1.496, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1872/0.1872, allocations: 38.53 MB / 352.5 MB, free: 12.55 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002433/0.002433, allocations: 63.89 kB / 492.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3459/0.3483, allocations: 62.46 MB / 0.542 GB, free: 448 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.00845/0.3568, allocations: 5.416 MB / 0.5473 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006896/0.3637, allocations: 4.037 MB / 0.5512 GB, free: 9.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005614/0.3642, allocations: 22.53 kB / 0.5512 GB, free: 9.008 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01156/0.3758, allocations: 5.426 MB / 0.5565 GB, free: 5.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00108/0.3769, allocations: 338.4 kB / 0.5569 GB, free: 5.258 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006095/0.3775, allocations: 219.6 kB / 0.5571 GB, free: 5.043 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002365/0.3798, allocations: 1.633 MB / 0.5587 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007708/0.3806, allocations: 0.5339 MB / 0.5592 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005126/0.3811, allocations: 386.7 kB / 0.5596 GB, free: 2.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006296/0.3818, allocations: 438.4 kB / 0.56 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.243e-05/0.3818, allocations: 56 kB / 0.56 GB, free: 1.996 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001686/0.382, allocations: 67.94 kB / 0.5601 GB, free: 1.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002647/0.3823, allocations: 263.3 kB / 0.5603 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003369/0.3826, allocations: 326.5 kB / 0.5607 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009624/0.3836, allocations: 0.8094 MB / 0.5614 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3836, allocations: 0 / 0.5614 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3836, allocations: 0 / 0.5614 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.3836, allocations: 4 kB / 0.5615 GB, free: 0.5352 MB / 398.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.001651/0.3852, allocations: 0.8065 MB / 0.5622 GB, free: 15.7 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.3853, allocations: 15.98 kB / 0.5623 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000111/0.3854, allocations: 90.69 kB / 0.5623 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002791/0.3857, allocations: 84.5 kB / 0.5624 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.3867, allocations: 499.2 kB / 0.5629 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.896e-05/0.3868, allocations: 29 kB / 0.5629 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.487e-05/0.3869, allocations: 44 kB / 0.563 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009949/0.3878, allocations: 0.6336 MB / 0.5636 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.721e-05/0.3879, allocations: 7.922 kB / 0.5636 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.645e-05/0.3879, allocations: 16 kB / 0.5636 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001284/0.3881, allocations: 48.97 kB / 0.5637 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007731/0.3888, allocations: 463.6 kB / 0.5641 GB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003297/0.3921, allocations: 2.434 MB / 0.5665 GB, free: 11.16 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004627/0.3926, allocations: 261.2 kB / 0.5667 GB, free: 10.88 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002189/0.3928, allocations: 133.7 kB / 0.5669 GB, free: 10.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.3928, allocations: 4 kB / 0.5669 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/0.3929, allocations: 38.5 kB / 0.5669 GB, free: 10.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 1.994e-06/0.3929, allocations: 0 / 0.5669 GB, free: 10.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002869/0.3957, allocations: 1.251 MB / 0.5681 GB, free: 9.402 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.3958, allocations: 81.05 kB / 0.5682 GB, free: 9.305 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004793/0.3963, allocations: 417.8 kB / 0.5686 GB, free: 8.887 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.3963, allocations: 33.7 kB / 0.5686 GB, free: 8.848 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00024/0.3965, allocations: 304.2 kB / 0.5689 GB, free: 8.547 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001634/0.3967, allocations: 115 kB / 0.569 GB, free: 8.434 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.3968, allocations: 82.09 kB / 0.5691 GB, free: 8.348 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.397, allocations: 362.8 kB / 0.5694 GB, free: 7.984 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002215/0.3972, allocations: 132.8 kB / 0.5696 GB, free: 7.855 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003551/0.3976, allocations: 270.3 kB / 0.5698 GB, free: 7.523 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006533/0.3983, allocations: 453.9 kB / 0.5703 GB, free: 7.016 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.3983, allocations: 8 kB / 0.5703 GB, free: 7.008 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001136/0.3994, allocations: 0.6001 MB / 0.5709 GB, free: 6.395 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.3994, allocations: 4 kB / 0.5709 GB, free: 6.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/0.3994, allocations: 11.94 kB / 0.5709 GB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000472/0.3999, allocations: 141.8 kB / 0.571 GB, free: 6.234 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003074/0.4002, allocations: 75.89 kB / 0.5711 GB, free: 6.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003927/0.4041, allocations: 3.469 MB / 0.5745 GB, free: 2.457 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003193/0.4045, allocations: 16 kB / 0.5745 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.327e-05/0.4045, allocations: 23.92 kB / 0.5745 GB, free: 2.418 MB / 414.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 (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): 2 systems {(2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003531/0.4049, allocations: 233.7 kB / 0.5747 GB, free: 2.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.963e-05/0.4049, allocations: 55.55 kB / 0.5748 GB, free: 2.125 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.406, allocations: 0.5 MB / 0.5753 GB, free: 1.613 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.406, allocations: 8 kB / 0.5753 GB, free: 1.605 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007445/0.4067, allocations: 401.2 kB / 0.5757 GB, free: 1.195 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.4067, allocations: 3.984 kB / 0.5757 GB, free: 1.191 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001688/0.4084, allocations: 0.9577 MB / 0.5766 GB, free: 176 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.4084, allocations: 4 kB / 0.5766 GB, free: 172 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002129/0.4086, allocations: 39.91 kB / 0.5766 GB, free: 132 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002964/0.4089, allocations: 100.9 kB / 0.5767 GB, free: 28 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.409, allocations: 4 kB / 0.5767 GB, free: 24 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002463/0.4114, allocations: 1.916 MB / 0.5786 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.4114, allocations: 3.938 kB / 0.5786 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.4125, allocations: 0.6431 MB / 0.5792 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001835/0.4127, allocations: 67.69 kB / 0.5793 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.826e-05/0.4127, allocations: 15.98 kB / 0.5793 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002048/0.4129, allocations: 8 kB / 0.5793 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.258e-05/0.413, allocations: 27.89 kB / 0.5794 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.336e-05/0.413, allocations: 8 kB / 0.5794 GB, free: 13.19 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004105/0.4134, allocations: 299.1 kB / 0.5797 GB, free: 12.9 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4134, allocations: 0 / 0.5797 GB, free: 12.9 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005872/0.414, allocations: 123.9 kB / 0.5798 GB, free: 12.78 MB / 430.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001439/0.4155, allocations: 1.185 MB / 0.5809 GB, free: 11.55 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.4167, allocations: 0.5963 MB / 0.5815 GB, free: 10.93 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.4167, allocations: 8 kB / 0.5815 GB, free: 10.92 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005047/0.4172, allocations: 294.4 kB / 0.5818 GB, free: 10.62 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007044/0.4179, allocations: 111.6 kB / 0.5819 GB, free: 10.52 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007487/0.4253, allocations: 4.625 MB / 0.5864 GB, free: 5.656 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007312/0.4261, allocations: 0.9204 MB / 0.5873 GB, free: 4.707 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002776/0.4264, allocations: 80.31 kB / 0.5874 GB, free: 4.629 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00027/0.4266, allocations: 179.4 kB / 0.5876 GB, free: 4.453 MB / 430.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4266, allocations: 0 / 0.5876 GB, free: 4.453 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04717/0.4738, allocations: 10.89 MB / 0.5982 GB, free: 9.734 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/12.96, allocations: 4 kB / 0.5982 GB, free: 9.73 MB / 446.1 MB " [Timeout remaining time 647] (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/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.867858274141327] Failed to read output from testmodel.py, exit status != 0: 13.075193941826 13.107098507 12.717732364 Calling exit ...