Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001438/0.001438, allocations: 173.1 kB / 13.64 MB, free: 1.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.448/1.448, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008395/0.0008395, allocations: 82.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1575/0.1575, allocations: 37.97 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.755e-05/2.756e-05, allocations: 4 kB / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1012, allocations: 56.32 MB / 474.1 MB, free: 4.801 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.45/0.5512, allocations: 102.1 MB / 0.5627 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001632/0.5529, allocations: 0.6895 MB / 0.5634 GB, free: 300 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04217/0.5951, allocations: 15.13 MB / 0.5781 GB, free: 3.461 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.554e-06/0.5952, allocations: 0 / 0.5781 GB, free: 3.461 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.091e-05/0.5952, allocations: 8 kB / 0.5781 GB, free: 3.453 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001412/0.5966, allocations: 0.7312 MB / 0.5788 GB, free: 2.707 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.96e-05/0.5967, allocations: 8.031 kB / 0.5789 GB, free: 2.699 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001295/0.5968, allocations: 59.3 kB / 0.5789 GB, free: 2.641 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001544/0.5984, allocations: 0.6985 MB / 0.5796 GB, free: 2.039 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.616e-05/0.5984, allocations: 33.34 kB / 0.5796 GB, free: 2.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.849e-05/0.5985, allocations: 41.53 kB / 0.5797 GB, free: 1.988 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006441/0.5992, allocations: 448.1 kB / 0.5801 GB, free: 1.621 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.5992, allocations: 0 / 0.5801 GB, free: 1.621 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.947e-05/0.5992, allocations: 17.31 kB / 0.5801 GB, free: 1.617 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.5993, allocations: 12 kB / 0.5801 GB, free: 1.605 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004041/0.5997, allocations: 265.6 kB / 0.5804 GB, free: 1.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002103/0.6018, allocations: 1.868 MB / 0.5822 GB, free: 15.72 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000522/0.6023, allocations: 245.1 kB / 0.5824 GB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/0.6025, allocations: 88.44 kB / 0.5825 GB, free: 15.45 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.6025, allocations: 4.188 kB / 0.5825 GB, free: 15.44 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002607/0.6028, allocations: 173.9 kB / 0.5827 GB, free: 15.28 MB / 394.7 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.6028, allocations: 0 / 0.5827 GB, free: 15.28 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.001488/0.6043, allocations: 0.84 MB / 0.5835 GB, free: 14.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.774e-05/0.6044, allocations: 132.5 kB / 0.5836 GB, free: 14.34 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003834/0.6048, allocations: 359.9 kB / 0.584 GB, free: 14.05 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.6048, allocations: 29.39 kB / 0.584 GB, free: 14.02 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.605, allocations: 260.9 kB / 0.5843 GB, free: 13.82 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.707e-05/0.605, allocations: 89.83 kB / 0.5843 GB, free: 13.75 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.479e-05/0.605, allocations: 7.25 kB / 0.5843 GB, free: 13.75 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.6052, allocations: 356.7 kB / 0.5847 GB, free: 13.41 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.6053, allocations: 77.36 kB / 0.5848 GB, free: 13.36 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/0.6055, allocations: 219.2 kB / 0.585 GB, free: 13.12 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001795/0.6057, allocations: 115.7 kB / 0.5851 GB, free: 13.04 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.6057, allocations: 4 kB / 0.5851 GB, free: 13.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007924/0.6065, allocations: 416.3 kB / 0.5855 GB, free: 12.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.6066, allocations: 14.45 kB / 0.5855 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.6066, allocations: 7.938 kB / 0.5855 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004164/0.607, allocations: 92.69 kB / 0.5856 GB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002311/0.6073, allocations: 67.84 kB / 0.5857 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002043/0.6093, allocations: 1.811 MB / 0.5874 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002435/0.6096, allocations: 34.02 kB / 0.5875 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.755e-05/0.6096, allocations: 15.25 kB / 0.5875 GB, free: 10.76 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 9.69e-05/0.6097, allocations: 130.4 kB / 0.5876 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.506e-05/0.6098, allocations: 39.53 kB / 0.5876 GB, free: 10.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006041/0.6104, allocations: 295.5 kB / 0.5879 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.6104, allocations: 4 kB / 0.5879 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.6104, allocations: 0 / 0.5879 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.6104, allocations: 3.953 kB / 0.5879 GB, free: 10.37 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009941/0.6114, allocations: 0.7712 MB / 0.5887 GB, free: 9.707 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.6114, allocations: 0 / 0.5887 GB, free: 9.707 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002291/0.6117, allocations: 43.92 kB / 0.5887 GB, free: 9.664 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001911/0.6119, allocations: 55 kB / 0.5888 GB, free: 9.617 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.6119, allocations: 7.734 kB / 0.5888 GB, free: 9.613 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.613, allocations: 1.427 MB / 0.5902 GB, free: 8.145 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.613, allocations: 4.031 kB / 0.5902 GB, free: 8.141 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006671/0.6137, allocations: 0.5012 MB / 0.5907 GB, free: 7.707 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/0.6138, allocations: 139.8 kB / 0.5908 GB, free: 7.562 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.847e-05/0.6139, allocations: 7.875 kB / 0.5908 GB, free: 7.559 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/0.6141, allocations: 15.7 kB / 0.5908 GB, free: 7.547 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.012e-05/0.6142, allocations: 27.83 kB / 0.5908 GB, free: 7.523 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.6142, allocations: 11.94 kB / 0.5909 GB, free: 7.516 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00027/0.6145, allocations: 273.5 kB / 0.5911 GB, free: 7.309 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6145, allocations: 4 kB / 0.5911 GB, free: 7.305 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004857/0.615, allocations: 123.1 kB / 0.5912 GB, free: 7.199 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008677/0.6159, allocations: 393.1 kB / 0.5916 GB, free: 6.863 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007397/0.6166, allocations: 387.7 kB / 0.592 GB, free: 6.543 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.6166, allocations: 8 kB / 0.592 GB, free: 6.535 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003636/0.617, allocations: 241.2 kB / 0.5922 GB, free: 6.32 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005432/0.6176, allocations: 115.7 kB / 0.5923 GB, free: 6.23 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.6189, allocations: 0.7976 MB / 0.5931 GB, free: 5.477 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003609/0.6193, allocations: 0.877 MB / 0.594 GB, free: 4.586 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002327/0.6195, allocations: 63.31 kB / 0.594 GB, free: 4.523 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.05e-05/0.6196, allocations: 31.44 kB / 0.5941 GB, free: 4.492 MB / 394.7 MB Notification: Performance of SimCode: time 5.31e-07/0.6196, allocations: 0 / 0.5941 GB, free: 4.492 MB / 394.7 MB Notification: Performance of Templates: time 0.01093/0.6306, allocations: 6.079 MB / 0.6 GB, free: 14.42 MB / 410.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches