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.001553/0.001553, allocations: 101.3 kB / 16.5 MB, free: 6.641 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.001767/0.001767, allocations: 194.3 kB / 17.42 MB, free: 6.066 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.267/1.267, allocations: 222.9 MB / 241.1 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.1693/0.1693, allocations: 38.03 MB / 329.3 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 57.17 kB / 398.2 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09126/0.09237, allocations: 58.06 MB / 456.3 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.006302/0.0987, allocations: 5.177 MB / 461.4 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002283/0.101, allocations: 1.678 MB / 463.1 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003645/0.1014, allocations: 27.81 kB / 463.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003995/0.1018, allocations: 103.3 kB / 463.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005701/0.1024, allocations: 254.7 kB / 463.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002297/0.1026, allocations: 91.91 kB / 463.6 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006492/0.1033, allocations: 0.6423 MB / 464.2 MB, free: 416 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.1035, allocations: 143.3 kB / 464.4 MB, free: 272 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001918/0.1037, allocations: 171.2 kB / 464.5 MB, free: 100 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002655/0.104, allocations: 215.2 kB / 464.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.802e-05/0.104, allocations: 20 kB / 464.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.472e-05/0.1041, allocations: 16 kB / 464.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.698e-05/0.1042, allocations: 103.6 kB / 464.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.1044, allocations: 179 kB / 465 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002955/0.1047, allocations: 362.5 kB / 465.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.1047, allocations: 4 kB / 465.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.42e-07/0.1047, allocations: 0 / 465.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.1047, allocations: 0 / 465.4 MB, free: 15.21 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.0009066/0.1056, allocations: 0.6554 MB / 466.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.1056, allocations: 8.031 kB / 466.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.922e-05/0.1057, allocations: 70.66 kB / 466.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.038e-05/0.1058, allocations: 40.47 kB / 466.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005091/0.1063, allocations: 383.4 kB / 466.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.746e-05/0.1063, allocations: 20.56 kB / 466.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.316e-05/0.1064, allocations: 28 kB / 466.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004337/0.1068, allocations: 330.2 kB / 466.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.1068, allocations: 7.938 kB / 466.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.27e-05/0.1069, allocations: 8 kB / 466.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.1069, allocations: 8 kB / 466.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003045/0.1072, allocations: 209.5 kB / 467.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.1085, allocations: 1.498 MB / 468.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000358/0.1089, allocations: 194.4 kB / 468.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.109, allocations: 75.42 kB / 468.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.1091, allocations: 4 kB / 468.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.1091, allocations: 42.55 kB / 469 MB, free: 11.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.403e-06/0.1091, allocations: 0 / 469 MB, free: 11.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009562/0.1101, allocations: 0.681 MB / 469.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.973e-05/0.1101, allocations: 128.5 kB / 469.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002751/0.1104, allocations: 321.6 kB / 470.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.1104, allocations: 25.7 kB / 470.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.1106, allocations: 224.1 kB / 470.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.078e-05/0.1106, allocations: 63.11 kB / 470.4 MB, free: 9.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.742e-05/0.1107, allocations: 53.69 kB / 470.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.1108, allocations: 342.8 kB / 470.8 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.339e-05/0.1109, allocations: 47.97 kB / 470.8 MB, free: 9.391 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.1111, allocations: 156.7 kB / 471 MB, free: 9.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002525/0.1113, allocations: 223.8 kB / 471.2 MB, free: 8.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1113, allocations: 0 / 471.2 MB, free: 8.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003325/0.1117, allocations: 253.3 kB / 471.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.1117, allocations: 8 kB / 471.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.1117, allocations: 4 kB / 471.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.1117, allocations: 7.938 kB / 471.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003301/0.1121, allocations: 83.89 kB / 471.5 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007531/0.1128, allocations: 1.286 MB / 472.8 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.113, allocations: 8 kB / 472.8 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.712e-05/0.113, allocations: 8 kB / 472.8 MB, free: 7.137 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.0001498/0.1131, allocations: 166.8 kB / 473 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.132e-05/0.1132, allocations: 43.47 kB / 473 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002874/0.1135, allocations: 184.4 kB / 473.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1135, allocations: 4 kB / 473.2 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-06/0.1136, allocations: 0 / 473.2 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1136, allocations: 4 kB / 473.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007009/0.1143, allocations: 0.5451 MB / 473.8 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.1143, allocations: 4 kB / 473.8 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002171/0.1145, allocations: 51.88 kB / 473.8 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.1145, allocations: 0 / 473.8 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.1145, allocations: 8 kB / 473.8 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.1146, allocations: 4 kB / 473.8 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1146, allocations: 0 / 473.8 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004116/0.115, allocations: 0.4927 MB / 474.3 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.364e-05/0.1151, allocations: 104.6 kB / 474.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.743e-05/0.1151, allocations: 8 kB / 474.4 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001929/0.1153, allocations: 4.031 kB / 474.4 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.615e-05/0.1153, allocations: 15.98 kB / 474.5 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.183e-05/0.1153, allocations: 7.938 kB / 474.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000183/0.1155, allocations: 219.2 kB / 474.7 MB, free: 5.188 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1155, allocations: 0 / 474.7 MB, free: 5.188 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000388/0.1159, allocations: 64 kB / 474.7 MB, free: 5.125 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.0006251/0.1166, allocations: 1.016 MB / 475.8 MB, free: 4.074 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003168/0.1169, allocations: 159.7 kB / 475.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1169, allocations: 0 / 475.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.117, allocations: 75.78 kB / 476 MB, free: 3.844 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006795/0.1177, allocations: 101.1 kB / 476.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003488/0.1212, allocations: 3.382 MB / 479.5 MB, free: 192 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003831/0.1216, allocations: 0.7993 MB / 480.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001836/0.1218, allocations: 58.92 kB / 480.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001383/0.1219, allocations: 111.4 kB / 480.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1219, allocations: 0 / 480.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01661/0.1386, allocations: 6.33 MB / 486.8 MB, free: 9.012 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002236/0.1388, allocations: 222.4 kB / 487 MB, free: 8.742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.77/1.909, allocations: 0 / 487 MB, free: 8.742 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