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.001352/0.001352, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001586/0.001586, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.545/1.545, allocations: 230.6 MB / 258.3 MB, free: 7.98 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.53 MB / 353.2 MB, free: 12.53 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.00207/0.00207, allocations: 71.83 kB / 493.3 MB, free: 4.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3937/0.3957, allocations: 62.47 MB / 0.5428 GB, free: 420 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.008116/0.4038, allocations: 5.405 MB / 0.5481 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006961/0.4108, allocations: 4.038 MB / 0.552 GB, free: 9 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005367/0.4113, allocations: 23.62 kB / 0.552 GB, free: 8.988 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01171/0.4231, allocations: 5.431 MB / 0.5573 GB, free: 5.578 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001514/0.4246, allocations: 326.5 kB / 0.5576 GB, free: 5.258 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007847/0.4254, allocations: 219.7 kB / 0.5578 GB, free: 5.043 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003284/0.4286, allocations: 1.641 MB / 0.5594 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001039/0.4297, allocations: 0.53 MB / 0.56 GB, free: 2.855 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006617/0.4303, allocations: 374.7 kB / 0.5603 GB, free: 2.488 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007076/0.431, allocations: 454.3 kB / 0.5608 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.959e-05/0.4311, allocations: 56 kB / 0.5608 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001795/0.4313, allocations: 67.98 kB / 0.5609 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002819/0.4316, allocations: 255.3 kB / 0.5611 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003688/0.432, allocations: 330.4 kB / 0.5614 GB, free: 1.348 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001235/0.4332, allocations: 0.8134 MB / 0.5622 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.4332, allocations: 0 / 0.5622 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.4332, allocations: 0 / 0.5622 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.088e-05/0.4332, allocations: 0 / 0.5622 GB, free: 0.5312 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.001894/0.4351, allocations: 0.8065 MB / 0.563 GB, free: 15.7 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.4352, allocations: 11.98 kB / 0.563 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.72e-05/0.4352, allocations: 17.19 kB / 0.563 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001167/0.4353, allocations: 94.62 kB / 0.5631 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002933/0.4356, allocations: 76.52 kB / 0.5632 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.4367, allocations: 495 kB / 0.5637 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.499e-05/0.4367, allocations: 40.98 kB / 0.5637 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.4369, allocations: 43.94 kB / 0.5638 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.4379, allocations: 0.6297 MB / 0.5644 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.832e-05/0.438, allocations: 4 kB / 0.5644 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.026e-05/0.438, allocations: 16 kB / 0.5644 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001315/0.4381, allocations: 48.97 kB / 0.5644 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007845/0.4389, allocations: 467.6 kB / 0.5649 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003563/0.4425, allocations: 2.434 MB / 0.5673 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004631/0.443, allocations: 265.2 kB / 0.5675 GB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000212/0.4432, allocations: 121.7 kB / 0.5676 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.595e-05/0.4432, allocations: 4 kB / 0.5676 GB, free: 10.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.65e-05/0.4432, allocations: 50.44 kB / 0.5677 GB, free: 10.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 2.865e-06/0.4432, allocations: 0 / 0.5677 GB, free: 10.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.003151/0.4464, allocations: 1.247 MB / 0.5689 GB, free: 9.387 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.944e-05/0.4465, allocations: 81.11 kB / 0.569 GB, free: 9.289 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005209/0.447, allocations: 413.8 kB / 0.5694 GB, free: 8.875 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.1e-05/0.447, allocations: 29.7 kB / 0.5694 GB, free: 8.84 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002658/0.4473, allocations: 312.2 kB / 0.5697 GB, free: 8.531 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.4474, allocations: 115 kB / 0.5698 GB, free: 8.418 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.4475, allocations: 82.08 kB / 0.5699 GB, free: 8.332 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002024/0.4477, allocations: 366.8 kB / 0.5702 GB, free: 7.965 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002159/0.448, allocations: 124.8 kB / 0.5704 GB, free: 7.844 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003491/0.4483, allocations: 282.2 kB / 0.5706 GB, free: 7.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006184/0.4489, allocations: 445.9 kB / 0.571 GB, free: 7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4489, allocations: 4 kB / 0.5711 GB, free: 6.996 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001151/0.4501, allocations: 0.5923 MB / 0.5716 GB, free: 6.391 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.629e-05/0.4501, allocations: 14.59 kB / 0.5716 GB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.4501, allocations: 7.984 kB / 0.5717 GB, free: 6.371 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000452/0.4506, allocations: 141.9 kB / 0.5718 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003188/0.4509, allocations: 87.83 kB / 0.5719 GB, free: 6.141 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003977/0.4549, allocations: 3.465 MB / 0.5753 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003851/0.4552, allocations: 12 kB / 0.5753 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.832e-05/0.4553, allocations: 20 kB / 0.5753 GB, free: 2.41 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.0004072/0.4557, allocations: 241.7 kB / 0.5755 GB, free: 2.164 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.768e-05/0.4558, allocations: 59.55 kB / 0.5756 GB, free: 2.105 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/0.4568, allocations: 0.4922 MB / 0.5761 GB, free: 1.602 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.4568, allocations: 8 kB / 0.5761 GB, free: 1.594 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007497/0.4575, allocations: 410.1 kB / 0.5765 GB, free: 1.176 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.4575, allocations: 0 / 0.5765 GB, free: 1.176 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001569/0.4591, allocations: 0.9654 MB / 0.5774 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.4591, allocations: 0 / 0.5774 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002131/0.4593, allocations: 40.02 kB / 0.5774 GB, free: 112 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002978/0.4596, allocations: 88.78 kB / 0.5775 GB, free: 20 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.944e-05/0.4597, allocations: 15.92 kB / 0.5775 GB, free: 4 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002244/0.4619, allocations: 1.913 MB / 0.5794 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.4619, allocations: 8.094 kB / 0.5794 GB, free: 13.97 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.4629, allocations: 0.643 MB / 0.58 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/0.4631, allocations: 75.64 kB / 0.5801 GB, free: 13.22 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.27e-05/0.4632, allocations: 8 kB / 0.5801 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.4634, allocations: 11.98 kB / 0.5801 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.204e-05/0.4634, allocations: 15.97 kB / 0.5801 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-05/0.4634, allocations: 15.98 kB / 0.5802 GB, free: 13.17 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003981/0.4638, allocations: 307.1 kB / 0.5804 GB, free: 12.87 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4638, allocations: 0 / 0.5804 GB, free: 12.87 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005845/0.4644, allocations: 116 kB / 0.5806 GB, free: 12.76 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.001331/0.4658, allocations: 1.189 MB / 0.5817 GB, free: 11.52 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.4669, allocations: 0.5965 MB / 0.5823 GB, free: 10.9 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.4669, allocations: 0 / 0.5823 GB, free: 10.9 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004904/0.4673, allocations: 290.3 kB / 0.5826 GB, free: 10.61 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007205/0.4681, allocations: 121.6 kB / 0.5827 GB, free: 10.49 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006867/0.4749, allocations: 4.618 MB / 0.5872 GB, free: 5.633 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006761/0.4756, allocations: 0.9204 MB / 0.5881 GB, free: 4.684 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002702/0.4759, allocations: 80.31 kB / 0.5882 GB, free: 4.605 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002643/0.4761, allocations: 179.4 kB / 0.5884 GB, free: 4.43 MB / 430.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4761, allocations: 0 / 0.5884 GB, free: 4.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0429/0.519, allocations: 10.91 MB / 0.599 GB, free: 9.703 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.23, allocations: 9.656 kB / 0.599 GB, free: 9.699 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: 16.40213230601512]