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.001219/0.001219, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002046/0.002046, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.478/1.478, allocations: 230.6 MB / 258.3 MB, free: 7.773 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.1878/0.1878, allocations: 38.53 MB / 353.2 MB, free: 12.32 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="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.002859/0.002859, allocations: 71.81 kB / 493.3 MB, free: 4.703 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.3508, allocations: 62.47 MB / 0.5427 GB, free: 240 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.007303/0.3581, allocations: 5.055 MB / 0.5476 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006226/0.3643, allocations: 3.634 MB / 0.5512 GB, free: 9.621 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003986/0.3647, allocations: 22.88 kB / 0.5512 GB, free: 9.609 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01143/0.3762, allocations: 5.384 MB / 0.5565 GB, free: 6.156 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001026/0.3772, allocations: 338.4 kB / 0.5568 GB, free: 5.824 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005763/0.3778, allocations: 211.7 kB / 0.557 GB, free: 5.617 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002345/0.3801, allocations: 1.633 MB / 0.5586 GB, free: 3.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000822/0.3809, allocations: 0.5339 MB / 0.5591 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005427/0.3815, allocations: 378.7 kB / 0.5595 GB, free: 3.062 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006463/0.3821, allocations: 450.3 kB / 0.5599 GB, free: 2.621 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.819e-05/0.3822, allocations: 56 kB / 0.56 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001827/0.3824, allocations: 71.98 kB / 0.56 GB, free: 2.496 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002858/0.3827, allocations: 247.3 kB / 0.5603 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003181/0.383, allocations: 266.8 kB / 0.5605 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009631/0.384, allocations: 0.8251 MB / 0.5613 GB, free: 1.164 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.384, allocations: 0 / 0.5613 GB, free: 1.164 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.384, allocations: 0 / 0.5613 GB, free: 1.164 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.384, allocations: 0 / 0.5613 GB, free: 1.164 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.3856, allocations: 0.8104 MB / 0.5621 GB, free: 332 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.3857, allocations: 19.98 kB / 0.5621 GB, free: 312 kB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.088e-05/0.3857, allocations: 9.188 kB / 0.5621 GB, free: 304 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000116/0.3858, allocations: 94.69 kB / 0.5622 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002749/0.3861, allocations: 68.52 kB / 0.5623 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.3871, allocations: 0.4912 MB / 0.5628 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.625e-05/0.3872, allocations: 33 kB / 0.5628 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.724e-05/0.3873, allocations: 47.98 kB / 0.5629 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.3884, allocations: 0.6296 MB / 0.5635 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.801e-05/0.3884, allocations: 4 kB / 0.5635 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.171e-05/0.3884, allocations: 16 kB / 0.5635 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001373/0.3886, allocations: 60.89 kB / 0.5635 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007997/0.3894, allocations: 463.6 kB / 0.564 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00345/0.3928, allocations: 2.31 MB / 0.5662 GB, free: 11.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005364/0.3934, allocations: 269.2 kB / 0.5665 GB, free: 11.61 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002193/0.3936, allocations: 125.7 kB / 0.5666 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.066e-05/0.3936, allocations: 4 kB / 0.5666 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.155e-05/0.3937, allocations: 42.44 kB / 0.5667 GB, free: 11.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 2.455e-06/0.3937, allocations: 0 / 0.5667 GB, free: 11.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.003039/0.3967, allocations: 1.247 MB / 0.5679 GB, free: 10.14 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.237e-05/0.3968, allocations: 81.11 kB / 0.568 GB, free: 10.04 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005089/0.3973, allocations: 417.8 kB / 0.5684 GB, free: 9.621 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.3973, allocations: 33.7 kB / 0.5684 GB, free: 9.582 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002464/0.3976, allocations: 300.3 kB / 0.5687 GB, free: 9.285 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.3977, allocations: 123 kB / 0.5688 GB, free: 9.164 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001409/0.3978, allocations: 86.08 kB / 0.5689 GB, free: 9.074 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.398, allocations: 354.7 kB / 0.5692 GB, free: 8.719 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002567/0.3983, allocations: 132.8 kB / 0.5693 GB, free: 8.59 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003658/0.3986, allocations: 280 kB / 0.5696 GB, free: 8.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006496/0.3993, allocations: 453.9 kB / 0.57 GB, free: 7.742 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.3993, allocations: 4 kB / 0.57 GB, free: 7.738 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00115/0.4004, allocations: 0.5923 MB / 0.5706 GB, free: 7.133 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.4005, allocations: 11.94 kB / 0.5706 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.4005, allocations: 8 kB / 0.5706 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004712/0.4009, allocations: 145.9 kB / 0.5708 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003073/0.4013, allocations: 79.84 kB / 0.5709 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003837/0.4051, allocations: 3.45 MB / 0.5742 GB, free: 3.203 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002981/0.4054, allocations: 15.94 kB / 0.5742 GB, free: 3.188 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.027e-05/0.4054, allocations: 23.98 kB / 0.5743 GB, free: 3.164 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.0003304/0.4058, allocations: 233.7 kB / 0.5745 GB, free: 2.926 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.473e-05/0.4058, allocations: 51.61 kB / 0.5745 GB, free: 2.875 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001051/0.4069, allocations: 0.4961 MB / 0.575 GB, free: 2.367 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.4069, allocations: 4 kB / 0.575 GB, free: 2.363 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007723/0.4077, allocations: 414.1 kB / 0.5754 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.4077, allocations: 0 / 0.5754 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001594/0.4093, allocations: 0.9264 MB / 0.5763 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.4093, allocations: 0 / 0.5763 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002131/0.4095, allocations: 44.09 kB / 0.5764 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000302/0.4098, allocations: 96.7 kB / 0.5765 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.122e-05/0.4098, allocations: 15.94 kB / 0.5765 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002313/0.4121, allocations: 1.893 MB / 0.5783 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4121, allocations: 0 / 0.5783 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/0.4132, allocations: 0.6548 MB / 0.579 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001492/0.4133, allocations: 71.58 kB / 0.579 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.549e-05/0.4134, allocations: 4 kB / 0.579 GB, free: 14.03 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002/0.4136, allocations: 4 kB / 0.579 GB, free: 14.03 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.387e-05/0.4137, allocations: 24.08 kB / 0.5791 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.521e-05/0.4137, allocations: 16 kB / 0.5791 GB, free: 13.99 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003918/0.4141, allocations: 307.1 kB / 0.5794 GB, free: 13.69 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4141, allocations: 0 / 0.5794 GB, free: 13.69 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005513/0.4146, allocations: 120 kB / 0.5795 GB, free: 13.57 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.001383/0.416, allocations: 1.181 MB / 0.5806 GB, free: 12.34 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00111/0.4171, allocations: 0.5914 MB / 0.5812 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4171, allocations: 1.188 kB / 0.5812 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005063/0.4176, allocations: 298.5 kB / 0.5815 GB, free: 11.42 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006872/0.4183, allocations: 122.7 kB / 0.5816 GB, free: 11.31 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006886/0.4252, allocations: 4.624 MB / 0.5861 GB, free: 6.449 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004051/0.4256, allocations: 319.7 kB / 0.5864 GB, free: 6.109 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002606/0.4259, allocations: 80.31 kB / 0.5865 GB, free: 6.031 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002718/0.4262, allocations: 179.4 kB / 0.5867 GB, free: 5.855 MB / 430.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4262, allocations: 0 / 0.5867 GB, free: 5.855 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05693/0.4831, allocations: 11.2 MB / 0.5976 GB, free: 10.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.88/13.36, allocations: 14.84 kB / 0.5976 GB, free: 10.9 MB / 446.1 MB " [Timeout remaining time 646] (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: 16.422446663025767]