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.0005976/0.0005976, allocations: 92.73 kB / 16.65 MB, free: 6.586 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.0007528/0.0007529, allocations: 185.3 kB / 17.56 MB, free: 6.203 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.195/1.195, allocations: 223.2 MB / 241.6 MB, free: 232 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1702/0.1702, allocations: 38.09 MB / 330.8 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000276/0.000276, allocations: 8 kB / 400.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08587/0.08616, allocations: 59.17 MB / 460 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005171/0.09137, allocations: 4.779 MB / 464.8 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002252/0.09364, allocations: 1.663 MB / 466.4 MB, free: 484 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002048/0.09387, allocations: 27.81 kB / 466.5 MB, free: 456 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003197/0.0942, allocations: 99.41 kB / 466.5 MB, free: 356 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004954/0.0947, allocations: 250.6 kB / 466.8 MB, free: 104 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001999/0.09491, allocations: 99.89 kB / 466.9 MB, free: 4 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006921/0.09561, allocations: 0.6345 MB / 467.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.09582, allocations: 135.4 kB / 467.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/0.09603, allocations: 167.1 kB / 467.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002686/0.0963, allocations: 207.1 kB / 468 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.366e-05/0.09635, allocations: 16 kB / 468 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.133e-05/0.09639, allocations: 16 kB / 468.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.0965, allocations: 91.7 kB / 468.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001529/0.09666, allocations: 196.7 kB / 468.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003004/0.09697, allocations: 358.5 kB / 468.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.09698, allocations: 4 kB / 468.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.09699, allocations: 0 / 468.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.097, allocations: 0 / 468.7 MB, free: 14.19 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.0008484/0.09785, allocations: 0.5932 MB / 469.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.09789, allocations: 8.031 kB / 469.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.496e-05/0.09796, allocations: 66.72 kB / 469.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.809e-05/0.09803, allocations: 48.34 kB / 469.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004968/0.09853, allocations: 379.5 kB / 469.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.09856, allocations: 16.56 kB / 469.8 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.884e-05/0.09862, allocations: 28 kB / 469.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004517/0.09907, allocations: 338.2 kB / 470.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.0991, allocations: 7.906 kB / 470.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.574e-05/0.09913, allocations: 12 kB / 470.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.09914, allocations: 8 kB / 470.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003083/0.09946, allocations: 205.5 kB / 470.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001385/0.1009, allocations: 1.482 MB / 471.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003618/0.1012, allocations: 198.3 kB / 472.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.1013, allocations: 71.53 kB / 472.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.1014, allocations: 4 kB / 472.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.1014, allocations: 46.5 kB / 472.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.302e-06/0.1014, allocations: 4 kB / 472.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009497/0.1024, allocations: 0.6781 MB / 472.9 MB, free: 9.684 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.678e-05/0.1024, allocations: 140.4 kB / 473 MB, free: 9.516 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002708/0.1027, allocations: 306.1 kB / 473.3 MB, free: 9.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.1028, allocations: 37.7 kB / 473.3 MB, free: 9.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.1029, allocations: 223.7 kB / 473.5 MB, free: 8.938 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.514e-05/0.1029, allocations: 63.09 kB / 473.6 MB, free: 8.875 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.803e-05/0.103, allocations: 29.7 kB / 473.6 MB, free: 8.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.1031, allocations: 342.8 kB / 474 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.948e-05/0.1032, allocations: 47.95 kB / 474 MB, free: 8.449 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.1033, allocations: 152.4 kB / 474.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002549/0.1036, allocations: 228.6 kB / 474.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1036, allocations: 0 / 474.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003388/0.104, allocations: 257.2 kB / 474.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.104, allocations: 4 kB / 474.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.104, allocations: 4 kB / 474.6 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.104, allocations: 7.938 kB / 474.7 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003315/0.1043, allocations: 83.89 kB / 474.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007573/0.1051, allocations: 1.286 MB / 476 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001328/0.1053, allocations: 8 kB / 476 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.1053, allocations: 11.98 kB / 476 MB, free: 6.191 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.0001486/0.1054, allocations: 166.8 kB / 476.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.031e-05/0.1055, allocations: 39.47 kB / 476.2 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002914/0.1058, allocations: 188.4 kB / 476.4 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.1058, allocations: 4 kB / 476.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.1058, allocations: 0 / 476.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1058, allocations: 0 / 476.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000674/0.1065, allocations: 0.5518 MB / 477 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1065, allocations: 8.031 kB / 477 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002036/0.1068, allocations: 35.98 kB / 477 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.1068, allocations: 0 / 477 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/0.1068, allocations: 8 kB / 477 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.1068, allocations: 0 / 477 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.1068, allocations: 7.938 kB / 477 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004115/0.1072, allocations: 494.4 kB / 477.5 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.96e-05/0.1073, allocations: 104.6 kB / 477.6 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.636e-05/0.1073, allocations: 12.03 kB / 477.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001827/0.1075, allocations: 0 / 477.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.811e-05/0.1076, allocations: 15.98 kB / 477.7 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.316e-05/0.1076, allocations: 11.94 kB / 477.7 MB, free: 4.457 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001975/0.1078, allocations: 227.1 kB / 477.9 MB, free: 4.242 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1078, allocations: 4 kB / 477.9 MB, free: 4.238 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003833/0.1082, allocations: 56 kB / 477.9 MB, free: 4.184 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.0006235/0.1088, allocations: 1.024 MB / 479 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003108/0.1091, allocations: 162.8 kB / 479.1 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1091, allocations: 0 / 479.1 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.581e-05/0.1092, allocations: 60.92 kB / 479.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007035/0.1099, allocations: 97.25 kB / 479.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003344/0.1133, allocations: 3.474 MB / 482.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.1137, allocations: 0.8071 MB / 483.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000163/0.1138, allocations: 50.94 kB / 483.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.114, allocations: 115.4 kB / 483.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.114, allocations: 0 / 483.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.167/0.281, allocations: 6.255 MB / 490 MB, free: 8.094 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002286/0.2812, allocations: 212.5 kB / 490.2 MB, free: 7.832 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.909/2.19, allocations: 0 / 490.2 MB, free: 7.832 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","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches