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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001665/0.001665, allocations: 111.7 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001857/0.001857, allocations: 200 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1829/0.1829, allocations: 38.03 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 64.03 kB / 457.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3517, allocations: 58.07 MB / 0.5036 GB, free: 7.332 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.006555/0.3583, allocations: 5.225 MB / 0.5087 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005312/0.3636, allocations: 3.961 MB / 0.5126 GB, free: 0.957 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004576/0.3641, allocations: 19.78 kB / 0.5126 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01028/0.3744, allocations: 4.798 MB / 0.5173 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001094/0.3755, allocations: 324 kB / 0.5176 GB, free: 15.38 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006663/0.3762, allocations: 217.8 kB / 0.5178 GB, free: 15.26 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002271/0.3785, allocations: 1.552 MB / 0.5193 GB, free: 14.71 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009253/0.3794, allocations: 0.6001 MB / 0.5199 GB, free: 14.44 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005921/0.38, allocations: 359 kB / 0.5203 GB, free: 14.28 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006573/0.3807, allocations: 418.5 kB / 0.5207 GB, free: 14.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.028e-05/0.3808, allocations: 55.59 kB / 0.5207 GB, free: 14.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.381, allocations: 66.86 kB / 0.5208 GB, free: 14.1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000303/0.3813, allocations: 252 kB / 0.521 GB, free: 14 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003725/0.3817, allocations: 321.9 kB / 0.5213 GB, free: 13.81 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001144/0.3828, allocations: 0.8158 MB / 0.5221 GB, free: 13.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3829, allocations: 0.9062 kB / 0.5221 GB, free: 13.49 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3829, allocations: 0.6094 kB / 0.5221 GB, free: 13.49 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.3829, allocations: 0 / 0.5221 GB, free: 13.49 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.001706/0.3846, allocations: 0.8828 MB / 0.523 GB, free: 12.83 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.3846, allocations: 13.55 kB / 0.523 GB, free: 12.83 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001155/0.3848, allocations: 86.75 kB / 0.5231 GB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002718/0.385, allocations: 81.39 kB / 0.5232 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.3862, allocations: 0.5654 MB / 0.5237 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.713e-05/0.3863, allocations: 36.19 kB / 0.5237 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.607e-05/0.3864, allocations: 41.61 kB / 0.5238 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.3874, allocations: 0.6306 MB / 0.5244 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.915e-05/0.3874, allocations: 10.05 kB / 0.5244 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.042e-05/0.3875, allocations: 16.72 kB / 0.5244 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001425/0.3877, allocations: 50.86 kB / 0.5245 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008189/0.3885, allocations: 462.2 kB / 0.5249 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003411/0.3919, allocations: 2.507 MB / 0.5274 GB, free: 9.977 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006327/0.3926, allocations: 281.8 kB / 0.5276 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003122/0.3929, allocations: 149.8 kB / 0.5278 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.547e-05/0.3929, allocations: 2.625 kB / 0.5278 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.422e-05/0.393, allocations: 41.44 kB / 0.5278 GB, free: 9.719 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.384e-06/0.393, allocations: 4 kB / 0.5278 GB, free: 9.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.004051/0.3971, allocations: 1.554 MB / 0.5293 GB, free: 8.555 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.482e-05/0.3971, allocations: 85.27 kB / 0.5294 GB, free: 8.457 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005806/0.3977, allocations: 417.9 kB / 0.5298 GB, free: 8.195 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.318e-05/0.3978, allocations: 30.98 kB / 0.5298 GB, free: 8.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002842/0.3981, allocations: 304.5 kB / 0.5301 GB, free: 7.891 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.3982, allocations: 124.6 kB / 0.5303 GB, free: 7.781 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001447/0.3984, allocations: 82.83 kB / 0.5303 GB, free: 7.727 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.3986, allocations: 362.3 kB / 0.5307 GB, free: 7.375 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002862/0.3988, allocations: 130.8 kB / 0.5308 GB, free: 7.312 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003602/0.3992, allocations: 272.8 kB / 0.5311 GB, free: 7.059 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000675/0.3999, allocations: 448.8 kB / 0.5315 GB, free: 6.715 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3999, allocations: 1.406 kB / 0.5315 GB, free: 6.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001313/0.4012, allocations: 0.6786 MB / 0.5322 GB, free: 6.281 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/0.4013, allocations: 6.781 kB / 0.5322 GB, free: 6.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.4013, allocations: 8.469 kB / 0.5322 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005223/0.4018, allocations: 156 kB / 0.5323 GB, free: 6.191 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003347/0.4022, allocations: 78.22 kB / 0.5324 GB, free: 6.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004504/0.4067, allocations: 3.676 MB / 0.536 GB, free: 2.758 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004496/0.4072, allocations: 14 kB / 0.536 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.528e-05/0.4072, allocations: 19.91 kB / 0.536 GB, free: 2.746 MB / 398.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.0004612/0.4077, allocations: 239.3 kB / 0.5362 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.4078, allocations: 49.28 kB / 0.5363 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001303/0.4091, allocations: 0.5629 MB / 0.5368 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.4092, allocations: 4.531 kB / 0.5368 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.001031/0.4102, allocations: 491.8 kB / 0.5373 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.904e-06/0.4102, allocations: 1.438 kB / 0.5373 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001902/0.4121, allocations: 1.003 MB / 0.5383 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-06/0.4122, allocations: 6.094 kB / 0.5383 GB, free: 1.023 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002087/0.4124, allocations: 34.23 kB / 0.5383 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002802/0.4127, allocations: 89.62 kB / 0.5384 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.428e-05/0.4127, allocations: 7.438 kB / 0.5384 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002576/0.4153, allocations: 2.02 MB / 0.5404 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.4153, allocations: 9.062 kB / 0.5404 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.4164, allocations: 0.6432 MB / 0.541 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002266/0.4166, allocations: 144.1 kB / 0.5412 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.793e-05/0.4167, allocations: 15.28 kB / 0.5412 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.4169, allocations: 11.23 kB / 0.5412 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.696e-05/0.4169, allocations: 26.81 kB / 0.5412 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.417, allocations: 6.625 kB / 0.5412 GB, free: 14.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004176/0.4174, allocations: 306.1 kB / 0.5415 GB, free: 14.35 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4174, allocations: 0 / 0.5415 GB, free: 14.35 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005919/0.418, allocations: 122.5 kB / 0.5416 GB, free: 14.34 MB / 414.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.00137/0.4194, allocations: 1.195 MB / 0.5428 GB, free: 13.36 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001168/0.4205, allocations: 0.6137 MB / 0.5434 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.4206, allocations: 4.062 kB / 0.5434 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004878/0.421, allocations: 302.8 kB / 0.5437 GB, free: 12.72 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006838/0.4217, allocations: 107.3 kB / 0.5438 GB, free: 12.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007229/0.429, allocations: 4.786 MB / 0.5485 GB, free: 9.035 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006499/0.4297, allocations: 0.9166 MB / 0.5494 GB, free: 8.094 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002731/0.4299, allocations: 76.33 kB / 0.5494 GB, free: 8.02 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000282/0.4302, allocations: 183.4 kB / 0.5496 GB, free: 7.84 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4302, allocations: 0 / 0.5496 GB, free: 7.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04201/0.4723, allocations: 10.46 MB / 0.5598 GB, free: 13.57 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.4, allocations: 8.125 kB / 0.5598 GB, free: 13.56 MB / 430.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.csv","/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) Reference file matches