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.001324/0.001324, allocations: 109 kB / 17.06 MB, free: 6.02 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.001267/0.001267, allocations: 189.4 kB / 18 MB, free: 5.102 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.413/1.413, 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.1867/0.1867, allocations: 38.05 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 71.88 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3035, allocations: 58.04 MB / 0.5036 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.004775/0.3083, allocations: 4.53 MB / 0.508 GB, free: 4.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.31, allocations: 1.496 MB / 0.5095 GB, free: 3.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001815/0.3102, allocations: 13.75 kB / 0.5095 GB, free: 3.227 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003628/0.3106, allocations: 117.6 kB / 0.5096 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005328/0.3112, allocations: 281.7 kB / 0.5099 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002335/0.3114, allocations: 107.7 kB / 0.51 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006084/0.312, allocations: 0.5019 MB / 0.5105 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002534/0.3123, allocations: 164.9 kB / 0.5107 GB, free: 2.648 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002657/0.3126, allocations: 204 kB / 0.5108 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003151/0.3129, allocations: 213.3 kB / 0.511 GB, free: 2.457 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.541e-05/0.313, allocations: 25.94 kB / 0.5111 GB, free: 2.457 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.552e-05/0.313, allocations: 26.16 kB / 0.5111 GB, free: 2.457 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.3131, allocations: 100.8 kB / 0.5112 GB, free: 2.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001689/0.3133, allocations: 188.3 kB / 0.5114 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000443/0.3138, allocations: 379.7 kB / 0.5117 GB, free: 2.141 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.3138, allocations: 0 / 0.5117 GB, free: 2.141 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3138, allocations: 1.5 kB / 0.5117 GB, free: 2.141 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.3138, allocations: 0 / 0.5117 GB, free: 2.141 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.0009406/0.3147, allocations: 0.674 MB / 0.5124 GB, free: 1.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.3148, allocations: 12.92 kB / 0.5124 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.815e-05/0.3149, allocations: 63.09 kB / 0.5125 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.578e-05/0.3149, allocations: 40.48 kB / 0.5125 GB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005801/0.3155, allocations: 412.2 kB / 0.5129 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.334e-05/0.3155, allocations: 23.41 kB / 0.5129 GB, free: 1.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.34e-05/0.3156, allocations: 34.52 kB / 0.513 GB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004739/0.3161, allocations: 327.3 kB / 0.5133 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.3161, allocations: 5.031 kB / 0.5133 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.742e-05/0.3161, allocations: 11.72 kB / 0.5133 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.3162, allocations: 7.5 kB / 0.5133 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003336/0.3165, allocations: 203.6 kB / 0.5135 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/0.318, allocations: 1.484 MB / 0.5149 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004788/0.3185, allocations: 193.4 kB / 0.5151 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001307/0.3187, allocations: 83.19 kB / 0.5152 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.3187, allocations: 2.5 kB / 0.5152 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.3188, allocations: 33.53 kB / 0.5152 GB, free: 15.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.893e-06/0.3188, allocations: 0 / 0.5152 GB, free: 15.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.00123/0.32, allocations: 0.7075 MB / 0.5159 GB, free: 14.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.731e-05/0.3201, allocations: 132.7 kB / 0.516 GB, free: 14.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003877/0.3205, allocations: 323.1 kB / 0.5164 GB, free: 14.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.3205, allocations: 26.77 kB / 0.5164 GB, free: 14.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.3207, allocations: 219.5 kB / 0.5166 GB, free: 14.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.668e-05/0.3208, allocations: 70.73 kB / 0.5167 GB, free: 14.28 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.671e-05/0.3209, allocations: 57.05 kB / 0.5167 GB, free: 14.24 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002043/0.3211, allocations: 343.9 kB / 0.517 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.624e-05/0.3212, allocations: 48.95 kB / 0.5171 GB, free: 13.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.3214, allocations: 155.8 kB / 0.5172 GB, free: 13.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003363/0.3217, allocations: 220.4 kB / 0.5174 GB, free: 13.56 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3218, allocations: 1 kB / 0.5174 GB, free: 13.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004953/0.3223, allocations: 261.6 kB / 0.5177 GB, free: 13.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.3223, allocations: 6.719 kB / 0.5177 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.3223, allocations: 7.969 kB / 0.5177 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.3223, allocations: 9.781 kB / 0.5177 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003931/0.3227, allocations: 80.86 kB / 0.5178 GB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.3239, allocations: 1.371 MB / 0.5191 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001876/0.3241, allocations: 8.938 kB / 0.5191 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.072e-05/0.3242, allocations: 13.44 kB / 0.5192 GB, free: 11.97 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.0002425/0.3244, allocations: 174.4 kB / 0.5193 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.3245, allocations: 35.47 kB / 0.5194 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003618/0.3249, allocations: 184.4 kB / 0.5195 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.3249, allocations: 3.969 kB / 0.5195 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.3249, allocations: 1.438 kB / 0.5195 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.3249, allocations: 1.266 kB / 0.5195 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009816/0.3259, allocations: 0.5415 MB / 0.5201 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3259, allocations: 0.7812 kB / 0.5201 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002553/0.3262, allocations: 46.69 kB / 0.5201 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.75e-06/0.3262, allocations: 2.375 kB / 0.5201 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.802e-05/0.3263, allocations: 7.719 kB / 0.5201 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.3263, allocations: 2.094 kB / 0.5201 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.3263, allocations: 5.031 kB / 0.5201 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005906/0.3269, allocations: 0.4907 MB / 0.5206 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.327, allocations: 110 kB / 0.5207 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.103e-05/0.327, allocations: 7.016 kB / 0.5207 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002009/0.3272, allocations: 7.047 kB / 0.5207 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.523e-05/0.3273, allocations: 18.17 kB / 0.5207 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.3273, allocations: 10.17 kB / 0.5208 GB, free: 10.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002655/0.3276, allocations: 223.6 kB / 0.521 GB, free: 10.65 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.134e-06/0.3276, allocations: 0 / 0.521 GB, free: 10.65 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004751/0.3281, allocations: 64 kB / 0.521 GB, free: 10.64 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.0009756/0.3291, allocations: 1.021 MB / 0.522 GB, free: 9.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004418/0.3295, allocations: 163.8 kB / 0.5222 GB, free: 9.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3295, allocations: 0 / 0.5222 GB, free: 9.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001406/0.3297, allocations: 70.91 kB / 0.5223 GB, free: 9.656 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007671/0.3304, allocations: 89.34 kB / 0.5223 GB, free: 9.625 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00437/0.3348, allocations: 3.284 MB / 0.5255 GB, free: 7.281 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004865/0.3353, allocations: 0.8012 MB / 0.5263 GB, free: 6.574 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002118/0.3356, allocations: 50.39 kB / 0.5264 GB, free: 6.562 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001748/0.3357, allocations: 112.3 kB / 0.5265 GB, free: 6.48 MB / 398.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3357, allocations: 0 / 0.5265 GB, free: 6.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06847/0.4042, allocations: 6.722 MB / 0.533 GB, free: 4.871 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.624/9.028, allocations: 5 kB / 0.5331 GB, free: 4.867 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