Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",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.001722/0.001721, allocations: 108.2 kB / 17.05 MB, free: 6.055 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.001965/0.001965, allocations: 193.4 kB / 17.99 MB, free: 5.156 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.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1806/0.1806, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002157/0.002157, allocations: 67.89 kB / 457.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3065, allocations: 58.06 MB / 0.5036 GB, free: 7.316 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006199/0.3127, allocations: 5.251 MB / 0.5087 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002205/0.315, allocations: 1.573 MB / 0.5103 GB, free: 2.555 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000351/0.3153, allocations: 19.78 kB / 0.5103 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004289/0.3158, allocations: 121 kB / 0.5104 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007985/0.3166, allocations: 315.8 kB / 0.5107 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004112/0.3171, allocations: 158.6 kB / 0.5109 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008009/0.3179, allocations: 0.6953 MB / 0.5115 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005276/0.3184, allocations: 452.5 kB / 0.512 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004146/0.3188, allocations: 279.4 kB / 0.5122 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004025/0.3192, allocations: 293.4 kB / 0.5125 GB, free: 1.422 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.308e-05/0.3193, allocations: 45.84 kB / 0.5126 GB, free: 1.422 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.957e-05/0.3194, allocations: 47.12 kB / 0.5126 GB, free: 1.422 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001624/0.3196, allocations: 155.8 kB / 0.5128 GB, free: 1.344 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00024/0.3199, allocations: 264.2 kB / 0.513 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000701/0.3206, allocations: 0.6014 MB / 0.5136 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3206, allocations: 1.125 kB / 0.5136 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3206, allocations: 0 / 0.5136 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.3206, allocations: 0 / 0.5136 GB, free: 0.9414 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001253/0.3219, allocations: 0.8004 MB / 0.5144 GB, free: 336 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.3219, allocations: 13.05 kB / 0.5144 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.954e-05/0.322, allocations: 80.05 kB / 0.5145 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.038e-05/0.3221, allocations: 54.89 kB / 0.5145 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007414/0.3228, allocations: 468.6 kB / 0.515 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.731e-05/0.3229, allocations: 63.62 kB / 0.515 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.103e-05/0.323, allocations: 41.22 kB / 0.5151 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008988/0.3239, allocations: 0.5001 MB / 0.5156 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/0.324, allocations: 2.656 kB / 0.5156 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.38e-05/0.324, allocations: 16.25 kB / 0.5156 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.324, allocations: 15.27 kB / 0.5156 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006962/0.3247, allocations: 344.4 kB / 0.5159 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002816/0.3276, allocations: 1.968 MB / 0.5178 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004992/0.3281, allocations: 223.4 kB / 0.5181 GB, free: 13.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002641/0.3284, allocations: 105.4 kB / 0.5182 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.3284, allocations: 2.531 kB / 0.5182 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.764e-05/0.3284, allocations: 41.59 kB / 0.5182 GB, free: 13.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 2.444e-06/0.3285, allocations: 0.5 kB / 0.5182 GB, free: 13.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001946/0.3304, allocations: 0.8571 MB / 0.519 GB, free: 13.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.751e-05/0.3305, allocations: 109.9 kB / 0.5191 GB, free: 12.96 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004265/0.3309, allocations: 327.8 kB / 0.5195 GB, free: 12.78 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.331, allocations: 31.11 kB / 0.5195 GB, free: 12.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002287/0.3312, allocations: 277.8 kB / 0.5197 GB, free: 12.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.136e-05/0.3313, allocations: 89.16 kB / 0.5198 GB, free: 12.45 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/0.3314, allocations: 68 kB / 0.5199 GB, free: 12.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.3316, allocations: 348.6 kB / 0.5202 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000214/0.3318, allocations: 84.89 kB / 0.5203 GB, free: 12.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003076/0.3321, allocations: 208.8 kB / 0.5205 GB, free: 11.86 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/0.3334, allocations: 0.5522 MB / 0.521 GB, free: 11.46 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.3334, allocations: 3.031 kB / 0.5211 GB, free: 11.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.00089/0.3343, allocations: 417.5 kB / 0.5214 GB, free: 11.28 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.3343, allocations: 7.062 kB / 0.5215 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.3344, allocations: 5.094 kB / 0.5215 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003204/0.3347, allocations: 77.98 kB / 0.5215 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002623/0.335, allocations: 67.33 kB / 0.5216 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002139/0.3371, allocations: 1.93 MB / 0.5235 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002465/0.3374, allocations: 16.84 kB / 0.5235 GB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.3374, allocations: 12.28 kB / 0.5235 GB, free: 9.496 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002742/0.3377, allocations: 209.5 kB / 0.5237 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.766e-05/0.3378, allocations: 35.2 kB / 0.5237 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.65e-05/0.3378, allocations: 40.53 kB / 0.5238 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.3378, allocations: 4.688 kB / 0.5238 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.3379, allocations: 2.219 kB / 0.5238 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3379, allocations: 1.344 kB / 0.5238 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001264/0.3391, allocations: 0.7806 MB / 0.5246 GB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.3392, allocations: 1.344 kB / 0.5246 GB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002362/0.3394, allocations: 41.02 kB / 0.5246 GB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.125e-05/0.3395, allocations: 23.36 kB / 0.5246 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/0.3395, allocations: 10.89 kB / 0.5246 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/0.3406, allocations: 1.369 MB / 0.526 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.3406, allocations: 2.656 kB / 0.526 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007703/0.3413, allocations: 0.511 MB / 0.5265 GB, free: 6.945 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001216/0.3415, allocations: 126.5 kB / 0.5266 GB, free: 6.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/0.3415, allocations: 3.047 kB / 0.5266 GB, free: 6.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001901/0.3417, allocations: 10.88 kB / 0.5266 GB, free: 6.816 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.457e-05/0.3418, allocations: 21.28 kB / 0.5266 GB, free: 6.809 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.3418, allocations: 6.094 kB / 0.5266 GB, free: 6.809 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002497/0.3421, allocations: 237.2 kB / 0.5269 GB, free: 6.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3421, allocations: 0 / 0.5269 GB, free: 6.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004994/0.3426, allocations: 86.38 kB / 0.5269 GB, free: 6.672 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001063/0.3437, allocations: 1.051 MB / 0.528 GB, free: 5.789 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007774/0.3444, allocations: 367.2 kB / 0.5283 GB, free: 5.59 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.3445, allocations: 5.094 kB / 0.5283 GB, free: 5.586 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004243/0.3449, allocations: 216.3 kB / 0.5285 GB, free: 5.441 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006808/0.3456, allocations: 115.1 kB / 0.5286 GB, free: 5.402 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005334/0.3509, allocations: 3.696 MB / 0.5322 GB, free: 2.859 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005496/0.3515, allocations: 0.8443 MB / 0.5331 GB, free: 2.145 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002106/0.3517, allocations: 51.02 kB / 0.5331 GB, free: 2.129 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001999/0.3519, allocations: 140.1 kB / 0.5332 GB, free: 2.023 MB / 398.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3519, allocations: 0 / 0.5332 GB, free: 2.023 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03965/0.3916, allocations: 8.515 MB / 0.5416 GB, free: 14.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.79, allocations: 5.25 kB / 0.5416 GB, free: 14.7 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches