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.001276/0.001276, allocations: 110.6 kB / 16.92 MB, free: 6.332 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.00133/0.00133, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.323/1.323, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1845/0.1845, allocations: 38.04 MB / 329.7 MB, free: 8.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 66.42 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1039, allocations: 58.06 MB / 457 MB, free: 7.996 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007044/0.1109, allocations: 5.246 MB / 462.2 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002257/0.1132, allocations: 1.577 MB / 463.8 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002117/0.1135, allocations: 15.94 kB / 463.8 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003348/0.1138, allocations: 127 kB / 463.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006499/0.1145, allocations: 318.1 kB / 464.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003193/0.1148, allocations: 159.7 kB / 464.4 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006944/0.1155, allocations: 0.6927 MB / 465.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004952/0.116, allocations: 447.7 kB / 465.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003665/0.1164, allocations: 282.9 kB / 465.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003576/0.1168, allocations: 294.8 kB / 466.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.43e-05/0.1168, allocations: 48 kB / 466.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.462e-05/0.1169, allocations: 48 kB / 466.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001735/0.1171, allocations: 151.5 kB / 466.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000242/0.1174, allocations: 266.8 kB / 466.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005501/0.1179, allocations: 0.5879 MB / 467.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1179, allocations: 0 / 467.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1179, allocations: 0 / 467.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.1179, allocations: 0 / 467.2 MB, free: 13.73 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.001202/0.1191, allocations: 0.7854 MB / 468 MB, free: 12.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.1192, allocations: 15.89 kB / 468 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.025e-05/0.1193, allocations: 78.7 kB / 468.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.494e-05/0.1194, allocations: 56.28 kB / 468.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006558/0.12, allocations: 431.7 kB / 468.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.432e-05/0.1201, allocations: 66.69 kB / 468.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.388e-05/0.1202, allocations: 43.91 kB / 468.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007202/0.1209, allocations: 0.5009 MB / 469.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.121, allocations: 0 / 469.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.582e-05/0.121, allocations: 20 kB / 469.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.121, allocations: 12 kB / 469.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005898/0.1216, allocations: 343.6 kB / 469.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002195/0.1238, allocations: 1.976 MB / 471.5 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004126/0.1242, allocations: 227.5 kB / 471.7 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001914/0.1244, allocations: 94.66 kB / 471.8 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.1245, allocations: 4 kB / 471.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.1245, allocations: 38.55 kB / 471.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.543e-06/0.1245, allocations: 0 / 471.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001553/0.1261, allocations: 0.8479 MB / 472.7 MB, free: 7.859 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/0.1262, allocations: 106.8 kB / 472.8 MB, free: 7.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003141/0.1265, allocations: 333.5 kB / 473.1 MB, free: 7.398 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.1265, allocations: 33.95 kB / 473.2 MB, free: 7.359 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.1267, allocations: 271.6 kB / 473.4 MB, free: 7.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.257e-05/0.1267, allocations: 74.91 kB / 473.5 MB, free: 7.016 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.01e-05/0.1268, allocations: 69.66 kB / 473.6 MB, free: 6.941 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.127, allocations: 346.8 kB / 473.9 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001916/0.1272, allocations: 75.95 kB / 474 MB, free: 6.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002551/0.1275, allocations: 217 kB / 474.2 MB, free: 6.246 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.1286, allocations: 0.5615 MB / 474.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.1286, allocations: 4 kB / 474.8 MB, free: 5.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007948/0.1294, allocations: 428.5 kB / 475.2 MB, free: 5.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.1295, allocations: 14.28 kB / 475.2 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.1295, allocations: 4 kB / 475.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003029/0.1298, allocations: 80.78 kB / 475.3 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002419/0.13, allocations: 59.91 kB / 475.3 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001876/0.1319, allocations: 1.928 MB / 477.3 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001918/0.1321, allocations: 16 kB / 477.3 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/0.1321, allocations: 16 kB / 477.3 MB, free: 2.922 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.0002314/0.1324, allocations: 203.4 kB / 477.5 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.952e-05/0.1325, allocations: 35.56 kB / 477.5 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.295e-05/0.1325, allocations: 39.31 kB / 477.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1325, allocations: 3.984 kB / 477.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1325, allocations: 4 kB / 477.6 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.716e-06/0.1326, allocations: 0 / 477.6 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.1337, allocations: 0.7804 MB / 478.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.1337, allocations: 0 / 478.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002455/0.1339, allocations: 39.97 kB / 478.4 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.582e-05/0.134, allocations: 24.84 kB / 478.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.1341, allocations: 12.03 kB / 478.4 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008683/0.1349, allocations: 1.387 MB / 479.8 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.1349, allocations: 3.938 kB / 479.8 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006991/0.1356, allocations: 0.4939 MB / 480.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.1358, allocations: 124.7 kB / 480.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.047e-05/0.1358, allocations: 8 kB / 480.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000185/0.136, allocations: 4 kB / 480.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.015e-05/0.1361, allocations: 23.91 kB / 480.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.1361, allocations: 4 kB / 480.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002152/0.1363, allocations: 243.1 kB / 480.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1363, allocations: 0 / 480.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004726/0.1368, allocations: 87.94 kB / 480.8 MB, free: 15.15 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.001015/0.1378, allocations: 1.044 MB / 481.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007616/0.1386, allocations: 386.5 kB / 482.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.1386, allocations: 4 kB / 482.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003439/0.139, allocations: 210.5 kB / 482.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006812/0.1396, allocations: 111.9 kB / 482.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004746/0.1444, allocations: 3.687 MB / 486.2 MB, free: 9.449 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004018/0.1448, allocations: 0.8426 MB / 487.1 MB, free: 8.582 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001927/0.145, allocations: 51.25 kB / 487.1 MB, free: 8.531 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001612/0.1452, allocations: 143.4 kB / 487.3 MB, free: 8.391 MB / 366.1 MB Notification: Performance of SimCode: time 2.244e-06/0.1452, allocations: 0 / 487.3 MB, free: 8.391 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03062/0.1758, allocations: 8.348 MB / 495.6 MB, free: 220 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.05, allocations: 2.234 kB / 495.6 MB, free: 220 kB / 366.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