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.001904/0.001904, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002207/0.002207, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.544/1.544, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.1876/0.1876, allocations: 38.5 MB / 348.7 MB, free: 2.602 MB / 270.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.002948/0.002948, allocations: 67.91 kB / 487.1 MB, free: 22.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1573, allocations: 62.41 MB / 0.5367 GB, free: 7.586 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.008243/0.1656, allocations: 5.29 MB / 0.5418 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008415/0.174, allocations: 4.012 MB / 0.5457 GB, free: 14.24 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006705/0.1746, allocations: 23.81 kB / 0.5458 GB, free: 14.22 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01177/0.1864, allocations: 4.835 MB / 0.5505 GB, free: 9.379 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001216/0.1876, allocations: 326.5 kB / 0.5508 GB, free: 9.059 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006792/0.1883, allocations: 215.7 kB / 0.551 GB, free: 8.848 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002503/0.1908, allocations: 1.563 MB / 0.5525 GB, free: 7.281 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007965/0.1916, allocations: 0.5143 MB / 0.553 GB, free: 6.758 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006324/0.1922, allocations: 374.7 kB / 0.5534 GB, free: 6.391 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006652/0.1929, allocations: 442.4 kB / 0.5538 GB, free: 5.957 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.756e-05/0.193, allocations: 56 kB / 0.5539 GB, free: 5.902 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001853/0.1932, allocations: 71.94 kB / 0.5539 GB, free: 5.832 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002751/0.1935, allocations: 255.3 kB / 0.5542 GB, free: 5.582 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003578/0.1938, allocations: 330.5 kB / 0.5545 GB, free: 5.258 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001027/0.1948, allocations: 0.8172 MB / 0.5553 GB, free: 4.438 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1948, allocations: 0 / 0.5553 GB, free: 4.438 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1948, allocations: 0 / 0.5553 GB, free: 4.438 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.636e-05/0.1949, allocations: 0 / 0.5553 GB, free: 4.438 MB / 414.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.001794/0.1967, allocations: 0.8818 MB / 0.5562 GB, free: 3.508 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.1967, allocations: 12.03 kB / 0.5562 GB, free: 3.496 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001122/0.1968, allocations: 90.69 kB / 0.5563 GB, free: 3.398 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003125/0.1971, allocations: 72.5 kB / 0.5563 GB, free: 3.328 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.1982, allocations: 0.5686 MB / 0.5569 GB, free: 2.719 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.475e-05/0.1983, allocations: 33 kB / 0.5569 GB, free: 2.684 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.802e-05/0.1984, allocations: 47.98 kB / 0.557 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.1995, allocations: 0.6297 MB / 0.5576 GB, free: 1.969 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.567e-05/0.1995, allocations: 7.938 kB / 0.5576 GB, free: 1.961 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.257e-05/0.1995, allocations: 19.98 kB / 0.5576 GB, free: 1.941 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001442/0.1997, allocations: 48.97 kB / 0.5576 GB, free: 1.895 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007879/0.2005, allocations: 471.5 kB / 0.5581 GB, free: 1.434 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003648/0.2041, allocations: 2.503 MB / 0.5605 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005434/0.2047, allocations: 257.2 kB / 0.5608 GB, free: 14.52 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002179/0.2049, allocations: 129.7 kB / 0.5609 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.82e-05/0.2049, allocations: 8.5 kB / 0.5609 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.339e-05/0.205, allocations: 38.5 kB / 0.561 GB, free: 14.33 MB / 430.1 MB Notification: Performance of pre-optimization done (n=30): time 3.376e-06/0.205, allocations: 0 / 0.561 GB, free: 14.33 MB / 430.1 MB Notification: Performance of matching and sorting (n=32): time 0.003339/0.2083, allocations: 1.555 MB / 0.5625 GB, free: 12.66 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/0.2084, allocations: 81.11 kB / 0.5625 GB, free: 12.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005113/0.2089, allocations: 417.8 kB / 0.5629 GB, free: 12.15 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.248e-05/0.2089, allocations: 29.7 kB / 0.563 GB, free: 12.11 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002547/0.2092, allocations: 308.1 kB / 0.5633 GB, free: 11.81 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.2093, allocations: 119.1 kB / 0.5634 GB, free: 11.69 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/0.2094, allocations: 90.02 kB / 0.5635 GB, free: 11.6 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.2096, allocations: 354.7 kB / 0.5638 GB, free: 11.24 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002233/0.2098, allocations: 132.7 kB / 0.5639 GB, free: 11.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003469/0.2102, allocations: 274.3 kB / 0.5642 GB, free: 10.78 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006587/0.2108, allocations: 457.6 kB / 0.5646 GB, free: 10.27 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.2108, allocations: 0 / 0.5646 GB, free: 10.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001252/0.2121, allocations: 0.6757 MB / 0.5653 GB, free: 9.559 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.2121, allocations: 8 kB / 0.5653 GB, free: 9.551 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.2121, allocations: 7.938 kB / 0.5653 GB, free: 9.543 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005017/0.2126, allocations: 157.9 kB / 0.5655 GB, free: 9.383 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003157/0.2129, allocations: 71.84 kB / 0.5655 GB, free: 9.312 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004094/0.217, allocations: 3.664 MB / 0.5691 GB, free: 5.367 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003388/0.2174, allocations: 15.98 kB / 0.5691 GB, free: 5.352 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.713e-05/0.2174, allocations: 24.06 kB / 0.5691 GB, free: 5.328 MB / 430.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.0003598/0.2178, allocations: 241.5 kB / 0.5694 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.292e-05/0.2179, allocations: 51.61 kB / 0.5694 GB, free: 5.031 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/0.2189, allocations: 0.575 MB / 0.57 GB, free: 4.422 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.2189, allocations: 4 kB / 0.57 GB, free: 4.418 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0008131/0.2198, allocations: 482.3 kB / 0.5704 GB, free: 3.91 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.2198, allocations: 3.984 kB / 0.5704 GB, free: 3.906 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001686/0.2215, allocations: 0.9937 MB / 0.5714 GB, free: 2.844 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.2215, allocations: 4.031 kB / 0.5714 GB, free: 2.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002339/0.2217, allocations: 51.84 kB / 0.5715 GB, free: 2.789 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003097/0.222, allocations: 84.78 kB / 0.5716 GB, free: 2.703 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.444e-05/0.222, allocations: 8 kB / 0.5716 GB, free: 2.695 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002383/0.2244, allocations: 2.028 MB / 0.5735 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2244, allocations: 0 / 0.5735 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.2255, allocations: 0.6509 MB / 0.5742 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002059/0.2257, allocations: 144.8 kB / 0.5743 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.76e-05/0.2257, allocations: 8 kB / 0.5743 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/0.2259, allocations: 0 / 0.5743 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.773e-05/0.226, allocations: 23.97 kB / 0.5743 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.643e-05/0.226, allocations: 15.98 kB / 0.5744 GB, free: 15.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004195/0.2265, allocations: 303.1 kB / 0.5746 GB, free: 15.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2265, allocations: 64 / 0.5746 GB, free: 15.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006334/0.2271, allocations: 127.9 kB / 0.5748 GB, free: 15.22 MB / 446.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.001497/0.2286, allocations: 1.177 MB / 0.5759 GB, free: 14 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.2299, allocations: 0.5962 MB / 0.5765 GB, free: 13.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.2299, allocations: 0 / 0.5765 GB, free: 13.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005411/0.2305, allocations: 290.4 kB / 0.5768 GB, free: 13.08 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000805/0.2313, allocations: 121.6 kB / 0.5769 GB, free: 12.97 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007508/0.2388, allocations: 4.768 MB / 0.5816 GB, free: 7.926 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007387/0.2395, allocations: 0.9282 MB / 0.5825 GB, free: 6.969 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003225/0.2398, allocations: 76.27 kB / 0.5825 GB, free: 6.895 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002923/0.2401, allocations: 179.4 kB / 0.5827 GB, free: 6.719 MB / 446.1 MB Notification: Performance of SimCode: time 1.423e-06/0.2401, allocations: 0 / 0.5827 GB, free: 6.719 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4108/0.651, allocations: 10.52 MB / 0.593 GB, free: 52.13 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.41, allocations: 9.578 kB / 0.593 GB, free: 52.13 MB / 446.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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: 14.487368628004333] Failed to read output from testmodel.py, exit status != 0: 11.501156394006102 11.521247708 11.322106952 Calling exit ...