Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_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.001055/0.001055, allocations: 114.6 kB / 16.63 MB, free: 6.812 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.001192/0.001192, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.275/1.275, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1681/0.1681, allocations: 38.02 MB / 329.4 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 69.48 kB / 398.4 MB, free: 34.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08887/0.09007, allocations: 58.06 MB / 456.5 MB, free: 8.309 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005992/0.09609, allocations: 5.172 MB / 461.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002436/0.09855, allocations: 1.678 MB / 463.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004255/0.099, allocations: 27.81 kB / 463.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004425/0.09947, allocations: 95.42 kB / 463.4 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007612/0.1002, allocations: 254.7 kB / 463.7 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002855/0.1005, allocations: 99.84 kB / 463.8 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006996/0.1013, allocations: 0.502 MB / 464.3 MB, free: 460 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002355/0.1015, allocations: 171.7 kB / 464.4 MB, free: 292 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002778/0.1018, allocations: 195.2 kB / 464.6 MB, free: 96 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003234/0.1021, allocations: 215.1 kB / 464.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.357e-05/0.1022, allocations: 28 kB / 464.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.483e-05/0.1023, allocations: 28 kB / 464.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001102/0.1024, allocations: 103.7 kB / 465 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001624/0.1025, allocations: 179 kB / 465.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003486/0.1029, allocations: 374.7 kB / 465.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1029, allocations: 0 / 465.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1029, allocations: 0 / 465.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.1029, allocations: 3.984 kB / 465.5 MB, free: 15.18 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.00113/0.1041, allocations: 0.6593 MB / 466.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.101e-05/0.1041, allocations: 19.89 kB / 466.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.418e-05/0.1042, allocations: 66.66 kB / 466.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.714e-05/0.1043, allocations: 40.47 kB / 466.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007234/0.1051, allocations: 379.4 kB / 466.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.514e-05/0.1051, allocations: 16.56 kB / 466.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.993e-05/0.1052, allocations: 31.98 kB / 466.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005499/0.1057, allocations: 334.2 kB / 467.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/0.1058, allocations: 0 / 467.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.94e-05/0.1058, allocations: 15.94 kB / 467.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.1058, allocations: 7.984 kB / 467.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003361/0.1062, allocations: 209.5 kB / 467.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.1077, allocations: 1.486 MB / 468.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003919/0.1081, allocations: 206.3 kB / 469 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.1083, allocations: 71.47 kB / 469.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.1083, allocations: 8 kB / 469.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.1083, allocations: 38.5 kB / 469.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.433e-06/0.1083, allocations: 4 kB / 469.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001057/0.1094, allocations: 0.6821 MB / 469.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.835e-05/0.1095, allocations: 128.5 kB / 469.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002974/0.1098, allocations: 317.6 kB / 470.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.1098, allocations: 29.7 kB / 470.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.11, allocations: 216.1 kB / 470.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.13e-05/0.11, allocations: 75.08 kB / 470.5 MB, free: 9.781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.827e-05/0.1101, allocations: 53.69 kB / 470.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.1102, allocations: 342.8 kB / 470.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.261e-05/0.1103, allocations: 51.92 kB / 471 MB, free: 9.328 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.1105, allocations: 148.8 kB / 471.1 MB, free: 9.137 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002556/0.1107, allocations: 220.7 kB / 471.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1107, allocations: 0 / 471.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003586/0.1111, allocations: 256.5 kB / 471.6 MB, free: 8.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.1111, allocations: 8.031 kB / 471.6 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.1111, allocations: 7.984 kB / 471.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.1112, allocations: 11.94 kB / 471.6 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003452/0.1115, allocations: 71.91 kB / 471.7 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008513/0.1124, allocations: 1.389 MB / 473.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.1125, allocations: 11.91 kB / 473.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.949e-05/0.1126, allocations: 12.12 kB / 473.1 MB, free: 6.969 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001619/0.1127, allocations: 174.6 kB / 473.3 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.188e-05/0.1128, allocations: 31.62 kB / 473.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002983/0.1131, allocations: 180.5 kB / 473.5 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.1131, allocations: 4 kB / 473.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.1132, allocations: 0 / 473.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.1132, allocations: 3.984 kB / 473.5 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007133/0.1139, allocations: 0.5374 MB / 474 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1139, allocations: 4 kB / 474 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002293/0.1141, allocations: 43.91 kB / 474.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.1141, allocations: 0 / 474.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.1142, allocations: 8 kB / 474.1 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1142, allocations: 0 / 474.1 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.1142, allocations: 11.94 kB / 474.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000435/0.1146, allocations: 0.4893 MB / 474.6 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.99e-05/0.1147, allocations: 100.7 kB / 474.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.92e-05/0.1148, allocations: 8 kB / 474.7 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002006/0.115, allocations: 7.938 kB / 474.7 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.059e-05/0.115, allocations: 15.97 kB / 474.7 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.115, allocations: 11.98 kB / 474.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002088/0.1152, allocations: 223.2 kB / 474.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1152, allocations: 0 / 474.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004152/0.1157, allocations: 56 kB / 475 MB, free: 4.969 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006606/0.1163, allocations: 1.027 MB / 476 MB, free: 3.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000369/0.1167, allocations: 174.8 kB / 476.2 MB, free: 3.742 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/0.1167, allocations: 0.875 kB / 476.2 MB, free: 3.742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.1168, allocations: 67.98 kB / 476.3 MB, free: 3.676 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007116/0.1176, allocations: 99.83 kB / 476.4 MB, free: 3.586 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003832/0.1214, allocations: 3.393 MB / 479.7 MB, free: 16 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003808/0.1218, allocations: 0.8029 MB / 480.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001964/0.122, allocations: 50.94 kB / 480.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001515/0.1222, allocations: 115.4 kB / 480.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1222, allocations: 0 / 480.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02013/0.1423, allocations: 6.512 MB / 487.2 MB, free: 8.676 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001872/0.1425, allocations: 219.8 kB / 487.4 MB, free: 8.414 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.016, allocations: 0 / 487.4 MB, free: 8.414 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches