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.001027/0.001027, allocations: 108.1 kB / 16.51 MB, free: 6.707 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.001151/0.001151, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.249/1.249, allocations: 222.9 MB / 241.1 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1636/0.1636, allocations: 38.04 MB / 329.3 MB, free: 9.078 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 68.8 kB / 398.2 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1061, allocations: 58.06 MB / 456.3 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007394/0.1135, allocations: 6.093 MB / 462.3 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002719/0.1163, allocations: 1.838 MB / 464.2 MB, free: 476 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004653/0.1168, allocations: 39.75 kB / 464.2 MB, free: 436 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004279/0.1172, allocations: 107.3 kB / 464.3 MB, free: 328 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007689/0.118, allocations: 286.5 kB / 464.6 MB, free: 40 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003638/0.1184, allocations: 128 kB / 464.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008093/0.1192, allocations: 0.8838 MB / 465.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004351/0.1196, allocations: 381.8 kB / 466 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002827/0.1199, allocations: 243 kB / 466.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003403/0.1203, allocations: 298.8 kB / 466.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.591e-05/0.1203, allocations: 28 kB / 466.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.657e-05/0.1204, allocations: 32 kB / 466.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.1206, allocations: 139.5 kB / 466.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002282/0.1208, allocations: 250.8 kB / 467 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004717/0.1213, allocations: 0.5762 MB / 467.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1213, allocations: 0 / 467.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.528e-06/0.1213, allocations: 4 kB / 467.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.1213, allocations: 3.938 kB / 467.5 MB, free: 13.09 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001214/0.1225, allocations: 0.7698 MB / 468.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.1226, allocations: 16.03 kB / 468.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.392e-05/0.1227, allocations: 78.72 kB / 468.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.475e-05/0.1228, allocations: 60.27 kB / 468.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006088/0.1234, allocations: 431.6 kB / 468.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.704e-05/0.1235, allocations: 70.62 kB / 469 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.388e-05/0.1236, allocations: 44 kB / 469 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007362/0.1243, allocations: 0.497 MB / 469.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/0.1243, allocations: 7.984 kB / 469.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.511e-05/0.1244, allocations: 16 kB / 469.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.1244, allocations: 8 kB / 469.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000579/0.125, allocations: 343.7 kB / 469.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.1271, allocations: 1.98 MB / 471.8 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003999/0.1275, allocations: 225 kB / 472.1 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001897/0.1277, allocations: 102.5 kB / 472.2 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.1277, allocations: 7.938 kB / 472.2 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.1277, allocations: 38.56 kB / 472.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.473e-06/0.1277, allocations: 0 / 472.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001518/0.1293, allocations: 0.8398 MB / 473 MB, free: 7.227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.1293, allocations: 110.8 kB / 473.2 MB, free: 7.094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003002/0.1296, allocations: 337.5 kB / 473.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.1297, allocations: 25.95 kB / 473.5 MB, free: 6.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.1298, allocations: 275.6 kB / 473.8 MB, free: 6.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.96e-05/0.1299, allocations: 78.91 kB / 473.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.551e-05/0.13, allocations: 69.56 kB / 473.9 MB, free: 6.297 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1301, allocations: 346.8 kB / 474.3 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001975/0.1303, allocations: 79.95 kB / 474.3 MB, free: 5.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002527/0.1306, allocations: 213.1 kB / 474.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001104/0.1317, allocations: 0.5612 MB / 475.1 MB, free: 4.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.1317, allocations: 4 kB / 475.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007706/0.1325, allocations: 408.7 kB / 475.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.1325, allocations: 4 kB / 475.5 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.547e-06/0.1325, allocations: 11.98 kB / 475.5 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003035/0.1328, allocations: 73.19 kB / 475.6 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002328/0.1331, allocations: 75.83 kB / 475.7 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001655/0.1347, allocations: 1.745 MB / 477.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001882/0.1349, allocations: 12 kB / 477.4 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.1349, allocations: 16 kB / 477.4 MB, free: 2.48 MB / 350.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.0002109/0.1352, allocations: 205.7 kB / 477.6 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.668e-05/0.1352, allocations: 31.62 kB / 477.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.711e-05/0.1353, allocations: 39.25 kB / 477.7 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.1353, allocations: 4 kB / 477.7 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.1353, allocations: 3.938 kB / 477.7 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1353, allocations: 0 / 477.7 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.1364, allocations: 0.7766 MB / 478.5 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1364, allocations: 0 / 478.5 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002395/0.1367, allocations: 47.91 kB / 478.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.348e-05/0.1367, allocations: 20.84 kB / 478.6 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.1368, allocations: 8 kB / 478.6 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000767/0.1375, allocations: 1.284 MB / 479.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1376, allocations: 0 / 479.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007021/0.1383, allocations: 0.5056 MB / 480.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.146e-05/0.1384, allocations: 116.7 kB / 480.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.802e-05/0.1384, allocations: 11.98 kB / 480.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001933/0.1386, allocations: 11.94 kB / 480.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.283e-05/0.1387, allocations: 20.06 kB / 480.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.066e-05/0.1387, allocations: 11.98 kB / 480.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000195/0.1389, allocations: 227.2 kB / 480.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1389, allocations: 0 / 480.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004675/0.1394, allocations: 92 kB / 480.8 MB, free: 14.82 MB / 366.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.0009283/0.1403, allocations: 1.055 MB / 481.9 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006441/0.141, allocations: 355.2 kB / 482.2 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.141, allocations: 8 kB / 482.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003269/0.1413, allocations: 218.8 kB / 482.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006584/0.142, allocations: 105.4 kB / 482.6 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004833/0.1468, allocations: 3.853 MB / 486.4 MB, free: 8.961 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.1473, allocations: 0.8428 MB / 487.3 MB, free: 8.094 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002014/0.1475, allocations: 55.25 kB / 487.3 MB, free: 8.035 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.1477, allocations: 143.3 kB / 487.5 MB, free: 7.898 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1477, allocations: 0 / 487.5 MB, free: 7.898 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03369/0.1814, allocations: 7.967 MB / 495.4 MB, free: 132 kB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002365/0.1817, allocations: 240 kB / 495.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.886/2.067, allocations: 0 / 495.7 MB, free: 15.88 MB / 382.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","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches