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.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.001717/0.001717, allocations: 116.9 kB / 18.49 MB, free: 4.559 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.002116/0.002116, allocations: 217.4 kB / 21.46 MB, free: 1.605 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.57/1.57, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.192/0.192, allocations: 38.51 MB / 349.4 MB, free: 2.605 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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_latest_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",fmuType="cs",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.001997/0.001997, allocations: 59.91 kB / 487.8 MB, free: 22.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1214, allocations: 62.43 MB / 0.5374 GB, free: 7.562 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.007547/0.129, allocations: 5.278 MB / 0.5425 GB, free: 2.258 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006974/0.136, allocations: 4.012 MB / 0.5464 GB, free: 14.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005702/0.1365, allocations: 23.81 kB / 0.5465 GB, free: 14.21 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009846/0.1464, allocations: 4.835 MB / 0.5512 GB, free: 9.363 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001195/0.1476, allocations: 330.4 kB / 0.5515 GB, free: 9.039 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005824/0.1481, allocations: 215.6 kB / 0.5517 GB, free: 8.828 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00229/0.1504, allocations: 1.555 MB / 0.5532 GB, free: 7.27 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000841/0.1513, allocations: 0.5182 MB / 0.5537 GB, free: 6.742 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000612/0.1519, allocations: 378.7 kB / 0.5541 GB, free: 6.371 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006176/0.1525, allocations: 438.3 kB / 0.5545 GB, free: 5.941 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.399e-05/0.1526, allocations: 60 kB / 0.5546 GB, free: 5.883 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001732/0.1528, allocations: 64 kB / 0.5546 GB, free: 5.82 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002775/0.153, allocations: 267.2 kB / 0.5549 GB, free: 5.559 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003583/0.1534, allocations: 326.5 kB / 0.5552 GB, free: 5.238 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00105/0.1545, allocations: 0.8095 MB / 0.556 GB, free: 4.426 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1545, allocations: 0 / 0.556 GB, free: 4.426 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1545, allocations: 3.938 kB / 0.556 GB, free: 4.422 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.1545, allocations: 0 / 0.556 GB, free: 4.422 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.001759/0.1562, allocations: 0.8858 MB / 0.5568 GB, free: 3.488 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.1563, allocations: 8.031 kB / 0.5569 GB, free: 3.48 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.719e-05/0.1563, allocations: 13.19 kB / 0.5569 GB, free: 3.465 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001146/0.1564, allocations: 86.7 kB / 0.5569 GB, free: 3.371 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003003/0.1567, allocations: 76.5 kB / 0.557 GB, free: 3.297 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.1578, allocations: 0.5762 MB / 0.5576 GB, free: 2.68 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.79e-05/0.1579, allocations: 36.98 kB / 0.5576 GB, free: 2.645 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.767e-05/0.158, allocations: 44 kB / 0.5577 GB, free: 2.602 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.159, allocations: 0.6296 MB / 0.5583 GB, free: 1.934 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.159, allocations: 4 kB / 0.5583 GB, free: 1.93 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.115e-05/0.159, allocations: 19.98 kB / 0.5583 GB, free: 1.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001308/0.1592, allocations: 48.97 kB / 0.5583 GB, free: 1.863 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007587/0.1599, allocations: 467.6 kB / 0.5588 GB, free: 1.406 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003388/0.1633, allocations: 2.499 MB / 0.5612 GB, free: 14.77 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004678/0.1638, allocations: 269.1 kB / 0.5615 GB, free: 14.48 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002241/0.164, allocations: 129.7 kB / 0.5616 GB, free: 14.35 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.31e-05/0.164, allocations: 8.438 kB / 0.5616 GB, free: 14.34 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.183e-05/0.1641, allocations: 42.5 kB / 0.5617 GB, free: 14.29 MB / 430.1 MB Notification: Performance of pre-optimization done (n=30): time 2.535e-06/0.1641, allocations: 0 / 0.5617 GB, free: 14.29 MB / 430.1 MB Notification: Performance of matching and sorting (n=32): time 0.003135/0.1672, allocations: 1.552 MB / 0.5632 GB, free: 12.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.939e-05/0.1673, allocations: 81.11 kB / 0.5633 GB, free: 12.53 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004954/0.1678, allocations: 413.8 kB / 0.5636 GB, free: 12.11 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.051e-05/0.1678, allocations: 33.7 kB / 0.5637 GB, free: 12.07 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002349/0.168, allocations: 308.1 kB / 0.564 GB, free: 11.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.1681, allocations: 111 kB / 0.5641 GB, free: 11.66 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001372/0.1683, allocations: 86.08 kB / 0.5642 GB, free: 11.57 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.1684, allocations: 354.7 kB / 0.5645 GB, free: 11.21 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002249/0.1687, allocations: 140.8 kB / 0.5646 GB, free: 11.08 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00035/0.169, allocations: 273.5 kB / 0.5649 GB, free: 10.75 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006104/0.1696, allocations: 453.6 kB / 0.5653 GB, free: 10.24 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.1696, allocations: 4 kB / 0.5653 GB, free: 10.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001154/0.1708, allocations: 0.6796 MB / 0.566 GB, free: 9.523 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.148e-05/0.1708, allocations: 7.938 kB / 0.566 GB, free: 9.516 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.1708, allocations: 8 kB / 0.566 GB, free: 9.508 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004764/0.1713, allocations: 145.6 kB / 0.5662 GB, free: 9.359 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003299/0.1716, allocations: 76.12 kB / 0.5662 GB, free: 9.285 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003986/0.1756, allocations: 3.676 MB / 0.5698 GB, free: 5.328 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002925/0.1759, allocations: 16 kB / 0.5698 GB, free: 5.312 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.506e-05/0.176, allocations: 16 kB / 0.5698 GB, free: 5.297 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.0003393/0.1763, allocations: 245.7 kB / 0.5701 GB, free: 5.047 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.38e-05/0.1764, allocations: 59.59 kB / 0.5701 GB, free: 4.988 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001038/0.1774, allocations: 0.5594 MB / 0.5707 GB, free: 4.391 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.1774, allocations: 4 kB / 0.5707 GB, free: 4.387 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0008145/0.1782, allocations: 490.3 kB / 0.5712 GB, free: 3.871 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.1782, allocations: 0 / 0.5712 GB, free: 3.871 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001665/0.1799, allocations: 1.005 MB / 0.5721 GB, free: 2.797 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.1799, allocations: 3.938 kB / 0.5721 GB, free: 2.793 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002175/0.1801, allocations: 39.92 kB / 0.5722 GB, free: 2.754 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003068/0.1804, allocations: 92.88 kB / 0.5723 GB, free: 2.66 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.47e-05/0.1805, allocations: 11.94 kB / 0.5723 GB, free: 2.648 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002276/0.1827, allocations: 2.012 MB / 0.5742 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.1827, allocations: 0 / 0.5742 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.1838, allocations: 0.651 MB / 0.5749 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001704/0.1839, allocations: 144.8 kB / 0.575 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.791e-05/0.184, allocations: 8 kB / 0.575 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001968/0.1842, allocations: 16.05 kB / 0.575 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.811e-05/0.1842, allocations: 23.97 kB / 0.5751 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.016e-05/0.1843, allocations: 4 kB / 0.5751 GB, free: 15.61 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003714/0.1846, allocations: 307.1 kB / 0.5754 GB, free: 15.31 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1846, allocations: 0 / 0.5754 GB, free: 15.31 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000552/0.1852, allocations: 120 kB / 0.5755 GB, free: 15.19 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.001367/0.1865, allocations: 1.173 MB / 0.5766 GB, free: 13.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.1876, allocations: 0.6002 MB / 0.5772 GB, free: 13.35 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.1876, allocations: 320 / 0.5772 GB, free: 13.35 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004751/0.1881, allocations: 290.5 kB / 0.5775 GB, free: 13.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006862/0.1888, allocations: 132.4 kB / 0.5776 GB, free: 12.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006739/0.1955, allocations: 4.765 MB / 0.5823 GB, free: 7.887 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006253/0.1962, allocations: 0.9204 MB / 0.5832 GB, free: 6.938 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002785/0.1965, allocations: 80.33 kB / 0.5832 GB, free: 6.859 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002583/0.1967, allocations: 179.4 kB / 0.5834 GB, free: 6.684 MB / 446.1 MB Notification: Performance of SimCode: time 1.653e-06/0.1967, allocations: 0 / 0.5834 GB, free: 6.684 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2912/0.4879, allocations: 10.58 MB / 0.5937 GB, free: 51.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.72, allocations: 6.672 kB / 0.5937 GB, free: 51.62 MB / 446.1 MB " [Timeout remaining time 648] (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/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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.943191954051144]