Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.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.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",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.001583/0.001583, allocations: 113.2 kB / 17.07 MB, free: 5.988 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.001328/0.001328, allocations: 195 kB / 18 MB, free: 5.074 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.391/1.391, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1899/0.1899, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002312/0.002312, allocations: 67.89 kB / 457.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3372, allocations: 58.05 MB / 0.5036 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.006223/0.3434, allocations: 5.39 MB / 0.5089 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005594/0.3491, allocations: 4.155 MB / 0.5129 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005472/0.3497, allocations: 19.12 kB / 0.513 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01097/0.3606, allocations: 4.859 MB / 0.5177 GB, free: 15.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00109/0.3618, allocations: 342.2 kB / 0.518 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006952/0.3625, allocations: 250.5 kB / 0.5183 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002281/0.3648, allocations: 1.558 MB / 0.5198 GB, free: 14.58 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006045/0.3654, allocations: 396.1 kB / 0.5202 GB, free: 14.41 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005372/0.3659, allocations: 380 kB / 0.5205 GB, free: 14.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006187/0.3666, allocations: 444.7 kB / 0.521 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.485e-05/0.3667, allocations: 46.31 kB / 0.521 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003308/0.367, allocations: 124.9 kB / 0.5211 GB, free: 14.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000331/0.3673, allocations: 274.2 kB / 0.5214 GB, free: 13.95 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005996/0.3679, allocations: 324.8 kB / 0.5217 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001317/0.3693, allocations: 0.7467 MB / 0.5224 GB, free: 13.47 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.3693, allocations: 0 / 0.5224 GB, free: 13.47 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3693, allocations: 0.5625 kB / 0.5224 GB, free: 13.47 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.366e-05/0.3693, allocations: 0 / 0.5224 GB, free: 13.47 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.001967/0.3713, allocations: 0.9258 MB / 0.5233 GB, free: 12.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.3714, allocations: 13.62 kB / 0.5233 GB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000112/0.3715, allocations: 91.58 kB / 0.5234 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004427/0.3719, allocations: 100.6 kB / 0.5235 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001088/0.373, allocations: 0.5533 MB / 0.5241 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.464e-05/0.3731, allocations: 35.97 kB / 0.5241 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.377e-05/0.3732, allocations: 54.77 kB / 0.5241 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001065/0.3742, allocations: 0.6477 MB / 0.5248 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.3743, allocations: 3.062 kB / 0.5248 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.968e-05/0.3743, allocations: 24.33 kB / 0.5248 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000139/0.3745, allocations: 49.3 kB / 0.5249 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008033/0.3753, allocations: 494.1 kB / 0.5253 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003385/0.3787, allocations: 2.523 MB / 0.5278 GB, free: 9.957 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005026/0.3792, allocations: 321.1 kB / 0.5281 GB, free: 9.754 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002757/0.3795, allocations: 183.9 kB / 0.5283 GB, free: 9.648 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.702e-05/0.3795, allocations: 7.562 kB / 0.5283 GB, free: 9.645 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.464e-05/0.3796, allocations: 41.25 kB / 0.5283 GB, free: 9.598 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.014e-06/0.3796, allocations: 0 / 0.5283 GB, free: 9.598 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.00263/0.3822, allocations: 1.649 MB / 0.5299 GB, free: 8.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.18e-05/0.3823, allocations: 114.4 kB / 0.53 GB, free: 8.188 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004798/0.3828, allocations: 427 kB / 0.5304 GB, free: 7.926 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.648e-05/0.3829, allocations: 30.86 kB / 0.5305 GB, free: 7.891 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002306/0.3831, allocations: 309.9 kB / 0.5308 GB, free: 7.617 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.3832, allocations: 130.9 kB / 0.5309 GB, free: 7.504 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.3834, allocations: 92.98 kB / 0.531 GB, free: 7.441 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.3836, allocations: 363.4 kB / 0.5313 GB, free: 7.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002812/0.3838, allocations: 165 kB / 0.5315 GB, free: 7.008 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003442/0.3842, allocations: 300.3 kB / 0.5318 GB, free: 6.758 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007066/0.3849, allocations: 491.9 kB / 0.5322 GB, free: 6.406 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3849, allocations: 6.031 kB / 0.5322 GB, free: 6.402 MB / 398.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001323/0.3863, allocations: 0.7965 MB / 0.533 GB, free: 5.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.3863, allocations: 11.42 kB / 0.533 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.3863, allocations: 4.312 kB / 0.533 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00065/0.387, allocations: 209.7 kB / 0.5332 GB, free: 5.801 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003137/0.3873, allocations: 71.86 kB / 0.5333 GB, free: 5.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004751/0.392, allocations: 4.235 MB / 0.5374 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003477/0.3924, allocations: 19.77 kB / 0.5375 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-05/0.3925, allocations: 19.88 kB / 0.5375 GB, free: 2.082 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 38 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003295/0.3928, allocations: 230.4 kB / 0.5377 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.3929, allocations: 50.16 kB / 0.5378 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009756/0.3939, allocations: 0.6353 MB / 0.5384 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.3939, allocations: 4.812 kB / 0.5384 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3939, allocations: 5.219 kB / 0.5384 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.394, allocations: 5.234 kB / 0.5384 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001889/0.3959, allocations: 1.189 MB / 0.5395 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.3959, allocations: 1.031 kB / 0.5395 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004607/0.3963, allocations: 74.92 kB / 0.5396 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000186/0.3965, allocations: 52.33 kB / 0.5397 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.067e-05/0.3966, allocations: 8.594 kB / 0.5397 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002271/0.3989, allocations: 2.848 MB / 0.5425 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.788e-06/0.3989, allocations: 2.25 kB / 0.5425 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.4001, allocations: 0.9521 MB / 0.5434 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001991/0.4003, allocations: 149.7 kB / 0.5435 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.404e-05/0.4004, allocations: 8.969 kB / 0.5435 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002706/0.4007, allocations: 20.7 kB / 0.5436 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.332e-05/0.4008, allocations: 27.61 kB / 0.5436 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.192e-05/0.4008, allocations: 21.33 kB / 0.5436 GB, free: 12.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003344/0.4012, allocations: 295.1 kB / 0.5439 GB, free: 12.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4012, allocations: 0 / 0.5439 GB, free: 12.38 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006519/0.4018, allocations: 134.2 kB / 0.544 GB, free: 12.36 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],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 (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001596/0.4034, allocations: 1.512 MB / 0.5455 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001424/0.4049, allocations: 0.7358 MB / 0.5462 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4049, allocations: 1.406 kB / 0.5462 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005418/0.4054, allocations: 424.7 kB / 0.5466 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007456/0.4062, allocations: 111.3 kB / 0.5467 GB, free: 10.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008128/0.4143, allocations: 5.574 MB / 0.5522 GB, free: 5.117 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006978/0.4151, allocations: 0.9366 MB / 0.5531 GB, free: 4.156 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000408/0.4155, allocations: 100.4 kB / 0.5532 GB, free: 4.055 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003608/0.4159, allocations: 199.3 kB / 0.5534 GB, free: 3.859 MB / 414.1 MB Notification: Performance of SimCode: time 1.322e-06/0.4159, allocations: 0 / 0.5534 GB, free: 3.859 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04612/0.462, allocations: 12.19 MB / 0.5653 GB, free: 7.867 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/13.88, allocations: 3.516 kB / 0.5653 GB, free: 7.867 MB / 430.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_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_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches