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.001442/0.001442, allocations: 105.6 kB / 17.06 MB, free: 6.012 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.00118/0.00118, allocations: 195 kB / 18 MB, free: 5.094 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.334/1.334, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1726/0.1726, allocations: 38.05 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 67.91 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.3215, allocations: 58.05 MB / 0.5036 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005258/0.3268, allocations: 4.539 MB / 0.508 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001775/0.3286, allocations: 1.5 MB / 0.5095 GB, free: 3.238 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001893/0.3288, allocations: 16.59 kB / 0.5095 GB, free: 3.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003733/0.3292, allocations: 115.1 kB / 0.5096 GB, free: 3.168 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005634/0.3298, allocations: 275.9 kB / 0.5099 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002655/0.3301, allocations: 116.5 kB / 0.51 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005733/0.3307, allocations: 0.4977 MB / 0.5105 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002397/0.3309, allocations: 159 kB / 0.5106 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002388/0.3312, allocations: 210.3 kB / 0.5108 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002705/0.3314, allocations: 208.1 kB / 0.511 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.312e-05/0.3315, allocations: 30.58 kB / 0.5111 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.69e-05/0.3316, allocations: 25.62 kB / 0.5111 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.3317, allocations: 101.9 kB / 0.5112 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001552/0.3318, allocations: 183.9 kB / 0.5114 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003896/0.3322, allocations: 379.8 kB / 0.5117 GB, free: 2.156 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3322, allocations: 0 / 0.5117 GB, free: 2.156 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3323, allocations: 4.844 kB / 0.5117 GB, free: 2.152 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.3323, allocations: 0 / 0.5117 GB, free: 2.152 MB / 382.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.0009214/0.3332, allocations: 0.663 MB / 0.5124 GB, free: 1.613 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.3332, allocations: 14.22 kB / 0.5124 GB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.936e-05/0.3333, allocations: 62.3 kB / 0.5125 GB, free: 1.555 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.267e-05/0.3334, allocations: 40.5 kB / 0.5125 GB, free: 1.535 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005609/0.3339, allocations: 411.8 kB / 0.5129 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.019e-05/0.334, allocations: 19.5 kB / 0.5129 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.484e-05/0.334, allocations: 26.39 kB / 0.5129 GB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000451/0.3345, allocations: 335.3 kB / 0.5133 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.3345, allocations: 9.781 kB / 0.5133 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.641e-05/0.3346, allocations: 7.094 kB / 0.5133 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.3346, allocations: 6.438 kB / 0.5133 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003168/0.3349, allocations: 207.9 kB / 0.5135 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001399/0.3363, allocations: 1.487 MB / 0.5149 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000393/0.3367, allocations: 197.2 kB / 0.5151 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.3368, allocations: 75.81 kB / 0.5152 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.3369, allocations: 2.188 kB / 0.5152 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.147e-05/0.3369, allocations: 46.97 kB / 0.5152 GB, free: 15.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.343e-06/0.3369, allocations: 0 / 0.5152 GB, free: 15.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001106/0.338, allocations: 0.665 MB / 0.5159 GB, free: 14.94 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.388e-05/0.3381, allocations: 140.1 kB / 0.516 GB, free: 14.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003495/0.3385, allocations: 320.4 kB / 0.5163 GB, free: 14.6 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.3385, allocations: 31.11 kB / 0.5164 GB, free: 14.56 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002077/0.3387, allocations: 210.2 kB / 0.5166 GB, free: 14.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.185e-05/0.3388, allocations: 69.53 kB / 0.5166 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.972e-05/0.3389, allocations: 52.03 kB / 0.5167 GB, free: 14.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.339, allocations: 345.5 kB / 0.517 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.3391, allocations: 44.39 kB / 0.517 GB, free: 13.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.3393, allocations: 151.9 kB / 0.5172 GB, free: 13.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/0.3395, allocations: 233.8 kB / 0.5174 GB, free: 13.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3396, allocations: 1.281 kB / 0.5174 GB, free: 13.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003878/0.3399, allocations: 253.7 kB / 0.5177 GB, free: 13.49 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.34, allocations: 6.25 kB / 0.5177 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.34, allocations: 4.406 kB / 0.5177 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.34, allocations: 8.594 kB / 0.5177 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003762/0.3404, allocations: 84.67 kB / 0.5178 GB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009414/0.3413, allocations: 1.374 MB / 0.5191 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001656/0.3415, allocations: 16.94 kB / 0.5191 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.61e-05/0.3416, allocations: 10.28 kB / 0.5191 GB, free: 12.02 MB / 398.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.0001896/0.3418, allocations: 170.7 kB / 0.5193 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.84e-05/0.3419, allocations: 31.72 kB / 0.5193 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003801/0.3422, allocations: 184.2 kB / 0.5195 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.3423, allocations: 3.281 kB / 0.5195 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3423, allocations: 2.656 kB / 0.5195 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.3423, allocations: 5.469 kB / 0.5195 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009096/0.3432, allocations: 0.5445 MB / 0.52 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3432, allocations: 1.125 kB / 0.52 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002532/0.3435, allocations: 39.2 kB / 0.5201 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.3435, allocations: 2.094 kB / 0.5201 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.033e-05/0.3435, allocations: 6.125 kB / 0.5201 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.3435, allocations: 2.609 kB / 0.5201 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3435, allocations: 5 kB / 0.5201 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005014/0.344, allocations: 0.4942 MB / 0.5206 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.345e-05/0.3441, allocations: 110.8 kB / 0.5207 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.859e-05/0.3442, allocations: 3.141 kB / 0.5207 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002117/0.3444, allocations: 10.03 kB / 0.5207 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.954e-05/0.3444, allocations: 19.2 kB / 0.5207 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.3445, allocations: 8.938 kB / 0.5207 GB, free: 10.83 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002128/0.3447, allocations: 219.7 kB / 0.5209 GB, free: 10.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.524e-06/0.3447, allocations: 0 / 0.5209 GB, free: 10.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004818/0.3452, allocations: 64.38 kB / 0.521 GB, free: 10.7 MB / 398.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.0006985/0.3459, allocations: 1.026 MB / 0.522 GB, free: 9.785 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003775/0.3463, allocations: 152.9 kB / 0.5221 GB, free: 9.742 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3463, allocations: 1.219 kB / 0.5221 GB, free: 9.742 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.3464, allocations: 70.25 kB / 0.5222 GB, free: 9.719 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007958/0.3472, allocations: 98.73 kB / 0.5223 GB, free: 9.684 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004575/0.3518, allocations: 3.263 MB / 0.5255 GB, free: 7.359 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.3522, allocations: 0.8021 MB / 0.5263 GB, free: 6.652 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001877/0.3524, allocations: 53.33 kB / 0.5263 GB, free: 6.637 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001604/0.3525, allocations: 113.1 kB / 0.5264 GB, free: 6.555 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3526, allocations: 0 / 0.5264 GB, free: 6.555 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02688/0.3794, allocations: 6.835 MB / 0.5331 GB, free: 4.902 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.812/8.192, allocations: 5.094 kB / 0.5331 GB, free: 4.898 MB / 398.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