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.001404/0.001404, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001686/0.001686, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.46/1.46, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.1853/0.1853, allocations: 38.52 MB / 352.4 MB, free: 12.56 MB / 286.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="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"}) [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.002029/0.002029, allocations: 68.16 kB / 492.5 MB, free: 4.898 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3023/0.3043, allocations: 62.47 MB / 0.542 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.006808/0.3111, allocations: 5.409 MB / 0.5473 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005983/0.3171, allocations: 4.035 MB / 0.5512 GB, free: 9.203 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002736/0.3174, allocations: 23.66 kB / 0.5512 GB, free: 9.191 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01018/0.3276, allocations: 5.428 MB / 0.5565 GB, free: 5.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009975/0.3285, allocations: 330.5 kB / 0.5569 GB, free: 5.445 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000627/0.3292, allocations: 223.5 kB / 0.5571 GB, free: 5.227 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002341/0.3315, allocations: 1.637 MB / 0.5587 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007856/0.3323, allocations: 0.5261 MB / 0.5592 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005053/0.3328, allocations: 382.7 kB / 0.5595 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006341/0.3334, allocations: 446.3 kB / 0.56 GB, free: 2.234 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.367e-05/0.3335, allocations: 56 kB / 0.56 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001571/0.3337, allocations: 67.98 kB / 0.5601 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002698/0.334, allocations: 259.3 kB / 0.5603 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003336/0.3343, allocations: 326.4 kB / 0.5607 GB, free: 1.539 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009943/0.3353, allocations: 0.8172 MB / 0.5615 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3353, allocations: 0 / 0.5615 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3353, allocations: 4 kB / 0.5615 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.3353, allocations: 0 / 0.5615 GB, free: 0.7148 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.001624/0.3369, allocations: 0.8065 MB / 0.5622 GB, free: 15.88 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.337, allocations: 15.98 kB / 0.5623 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001135/0.3371, allocations: 90.69 kB / 0.5623 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000258/0.3373, allocations: 72.52 kB / 0.5624 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001201/0.3385, allocations: 0.4953 MB / 0.5629 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.822e-05/0.3386, allocations: 36.98 kB / 0.5629 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.555e-05/0.3387, allocations: 43.98 kB / 0.563 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009785/0.3396, allocations: 0.6296 MB / 0.5636 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.454e-05/0.3397, allocations: 4 kB / 0.5636 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.754e-05/0.3397, allocations: 20 kB / 0.5636 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001236/0.3398, allocations: 44.97 kB / 0.5637 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007539/0.3406, allocations: 471.6 kB / 0.5641 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003156/0.3438, allocations: 2.431 MB / 0.5665 GB, free: 11.34 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004478/0.3442, allocations: 257.2 kB / 0.5667 GB, free: 11.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002549/0.3445, allocations: 129.7 kB / 0.5668 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.748e-05/0.3445, allocations: 7.984 kB / 0.5669 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.786e-05/0.3445, allocations: 42.5 kB / 0.5669 GB, free: 10.88 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 1.834e-06/0.3445, allocations: 0 / 0.5669 GB, free: 10.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002869/0.3474, allocations: 1.255 MB / 0.5681 GB, free: 9.578 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.3475, allocations: 85.05 kB / 0.5682 GB, free: 9.477 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004917/0.348, allocations: 417.8 kB / 0.5686 GB, free: 9.059 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.348, allocations: 29.7 kB / 0.5686 GB, free: 9.023 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002365/0.3482, allocations: 304.2 kB / 0.5689 GB, free: 8.723 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.3483, allocations: 119 kB / 0.569 GB, free: 8.605 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.3485, allocations: 90.11 kB / 0.5691 GB, free: 8.512 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.3486, allocations: 350.7 kB / 0.5695 GB, free: 8.16 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002221/0.3489, allocations: 132.8 kB / 0.5696 GB, free: 8.031 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003542/0.3492, allocations: 282.2 kB / 0.5698 GB, free: 7.688 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006153/0.3498, allocations: 453.9 kB / 0.5703 GB, free: 7.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3498, allocations: 0 / 0.5703 GB, free: 7.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001098/0.3509, allocations: 0.5884 MB / 0.5709 GB, free: 6.578 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.351, allocations: 8 kB / 0.5709 GB, free: 6.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.351, allocations: 7.938 kB / 0.5709 GB, free: 6.562 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004342/0.3514, allocations: 149.9 kB / 0.571 GB, free: 6.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003029/0.3517, allocations: 75.89 kB / 0.5711 GB, free: 6.336 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003642/0.3553, allocations: 3.473 MB / 0.5745 GB, free: 2.629 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002581/0.3556, allocations: 16 kB / 0.5745 GB, free: 2.613 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.521e-05/0.3556, allocations: 16 kB / 0.5745 GB, free: 2.598 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.0003037/0.3559, allocations: 237.7 kB / 0.5747 GB, free: 2.355 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.877e-05/0.356, allocations: 55.55 kB / 0.5748 GB, free: 2.301 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009879/0.357, allocations: 0.5 MB / 0.5753 GB, free: 1.789 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-06/0.357, allocations: 4 kB / 0.5753 GB, free: 1.785 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000755/0.3578, allocations: 402.1 kB / 0.5757 GB, free: 1.375 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.3578, allocations: 8.031 kB / 0.5757 GB, free: 1.367 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00156/0.3593, allocations: 0.9615 MB / 0.5766 GB, free: 352 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3593, allocations: 0 / 0.5766 GB, free: 352 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002046/0.3595, allocations: 40.08 kB / 0.5766 GB, free: 312 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002734/0.3598, allocations: 92.77 kB / 0.5767 GB, free: 216 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.3598, allocations: 11.98 kB / 0.5767 GB, free: 204 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002254/0.3621, allocations: 1.912 MB / 0.5786 GB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3621, allocations: 0 / 0.5786 GB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.3631, allocations: 0.6433 MB / 0.5792 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001553/0.3633, allocations: 71.62 kB / 0.5793 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.652e-05/0.3633, allocations: 15.88 kB / 0.5793 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001911/0.3635, allocations: 8 kB / 0.5793 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.625e-05/0.3636, allocations: 27.89 kB / 0.5794 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-05/0.3636, allocations: 11.98 kB / 0.5794 GB, free: 13.37 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003636/0.364, allocations: 299.1 kB / 0.5797 GB, free: 13.07 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.364, allocations: 4 kB / 0.5797 GB, free: 13.07 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005281/0.3645, allocations: 119.9 kB / 0.5798 GB, free: 12.95 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.001335/0.3658, allocations: 1.189 MB / 0.5809 GB, free: 11.72 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001046/0.3669, allocations: 0.5923 MB / 0.5815 GB, free: 11.1 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3669, allocations: 0 / 0.5815 GB, free: 11.1 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004666/0.3673, allocations: 294.3 kB / 0.5818 GB, free: 10.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006367/0.368, allocations: 119.8 kB / 0.5819 GB, free: 10.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006543/0.3745, allocations: 4.625 MB / 0.5864 GB, free: 5.828 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006094/0.3751, allocations: 0.9204 MB / 0.5873 GB, free: 4.879 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002299/0.3754, allocations: 76.33 kB / 0.5874 GB, free: 4.805 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002419/0.3756, allocations: 179.4 kB / 0.5876 GB, free: 4.629 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3756, allocations: 4 kB / 0.5876 GB, free: 4.625 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04954/0.4251, allocations: 10.88 MB / 0.5982 GB, free: 9.914 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.56, allocations: 10.48 kB / 0.5982 GB, free: 9.906 MB / 446.1 MB " [Timeout remaining time 647] (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: 15.427071789978072]