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.001467/0.001467, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.479/1.479, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0008643/0.0008643, allocations: 95.33 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1639/0.1639, allocations: 38.05 MB / 357.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002971/0.0002969, allocations: 12 kB / 424 MB, free: 37.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2435, allocations: 56.32 MB / 480.3 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1338/0.3774, allocations: 102.2 MB / 0.5689 GB, free: 192 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002001/0.3795, allocations: 0.8666 MB / 0.5697 GB, free: 15.32 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03951/0.419, allocations: 15.14 MB / 0.5845 GB, free: 16 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.419, allocations: 0 / 0.5845 GB, free: 16 kB / 410.7 MB Notification: Performance of Transformations before backend: time 4.569e-05/0.4191, allocations: 15.94 kB / 0.5845 GB, free: 0 / 410.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.001341/0.4205, allocations: 0.7966 MB / 0.5853 GB, free: 15.15 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.4205, allocations: 12.03 kB / 0.5853 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.4207, allocations: 63.23 kB / 0.5854 GB, free: 15.08 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001547/0.4222, allocations: 0.7123 MB / 0.5861 GB, free: 14.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.142e-05/0.4223, allocations: 25 kB / 0.5861 GB, free: 14.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.856e-05/0.4223, allocations: 40 kB / 0.5861 GB, free: 14.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000715/0.4231, allocations: 456.4 kB / 0.5866 GB, free: 13.77 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.4231, allocations: 3.906 kB / 0.5866 GB, free: 13.77 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.142e-05/0.4231, allocations: 16 kB / 0.5866 GB, free: 13.75 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.4232, allocations: 11.94 kB / 0.5866 GB, free: 13.74 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004209/0.4236, allocations: 274.3 kB / 0.5869 GB, free: 13.46 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002149/0.4257, allocations: 1.867 MB / 0.5887 GB, free: 11.49 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004966/0.4263, allocations: 248.2 kB / 0.5889 GB, free: 11.22 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.4263, allocations: 4.25 kB / 0.5889 GB, free: 11.21 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002542/0.4266, allocations: 166.2 kB / 0.5891 GB, free: 11.03 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 2.315e-06/0.4266, allocations: 4 kB / 0.5891 GB, free: 11.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.001598/0.4282, allocations: 0.9161 MB / 0.59 GB, free: 10.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.206e-05/0.4283, allocations: 132.5 kB / 0.5901 GB, free: 9.891 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004125/0.4287, allocations: 353.3 kB / 0.5904 GB, free: 9.539 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.73e-05/0.4287, allocations: 33.7 kB / 0.5905 GB, free: 9.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001679/0.4289, allocations: 271.8 kB / 0.5907 GB, free: 9.23 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.347e-05/0.429, allocations: 86.75 kB / 0.5908 GB, free: 9.145 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.409e-05/0.429, allocations: 4 kB / 0.5908 GB, free: 9.141 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.4291, allocations: 358.8 kB / 0.5912 GB, free: 8.781 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.4293, allocations: 79.95 kB / 0.5912 GB, free: 8.703 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002116/0.4295, allocations: 212.2 kB / 0.5914 GB, free: 8.438 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001869/0.4297, allocations: 123.8 kB / 0.5916 GB, free: 8.316 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.4297, allocations: 7.953 kB / 0.5916 GB, free: 8.309 MB / 426.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007927/0.4305, allocations: 421.7 kB / 0.592 GB, free: 7.887 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.4305, allocations: 11.98 kB / 0.592 GB, free: 7.875 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.4306, allocations: 7.953 kB / 0.592 GB, free: 7.867 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004109/0.431, allocations: 88.77 kB / 0.5921 GB, free: 7.777 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002295/0.4312, allocations: 67.91 kB / 0.5921 GB, free: 7.711 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002181/0.4334, allocations: 1.854 MB / 0.5939 GB, free: 5.727 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002567/0.4337, allocations: 19.91 kB / 0.594 GB, free: 5.707 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.883e-05/0.4337, allocations: 20.05 kB / 0.594 GB, free: 5.688 MB / 426.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 () * Number of clocked 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 0.0002459/0.434, allocations: 197.7 kB / 0.5942 GB, free: 5.484 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.474e-05/0.434, allocations: 39.53 kB / 0.5942 GB, free: 5.445 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005726/0.4346, allocations: 290 kB / 0.5945 GB, free: 5.152 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.4346, allocations: 4 kB / 0.5945 GB, free: 5.148 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.4346, allocations: 3.984 kB / 0.5945 GB, free: 5.145 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.4346, allocations: 3.984 kB / 0.5945 GB, free: 5.141 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.4357, allocations: 0.7726 MB / 0.5953 GB, free: 4.309 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.4357, allocations: 0 / 0.5953 GB, free: 4.309 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002474/0.436, allocations: 47.88 kB / 0.5953 GB, free: 4.262 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000206/0.4362, allocations: 52.75 kB / 0.5953 GB, free: 4.207 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.245e-05/0.4362, allocations: 7.984 kB / 0.5954 GB, free: 4.199 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001279/0.4375, allocations: 1.437 MB / 0.5968 GB, free: 2.625 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4375, allocations: 0 / 0.5968 GB, free: 2.625 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000758/0.4383, allocations: 0.5237 MB / 0.5973 GB, free: 2.066 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000159/0.4384, allocations: 136.6 kB / 0.5974 GB, free: 1.914 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.579e-05/0.4385, allocations: 8 kB / 0.5974 GB, free: 1.906 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.4387, allocations: 15.98 kB / 0.5974 GB, free: 1.891 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.413e-05/0.4388, allocations: 27.86 kB / 0.5975 GB, free: 1.863 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.4388, allocations: 12 kB / 0.5975 GB, free: 1.852 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002982/0.4391, allocations: 283.1 kB / 0.5977 GB, free: 1.578 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4391, allocations: 0 / 0.5977 GB, free: 1.578 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000528/0.4397, allocations: 123.9 kB / 0.5979 GB, free: 1.457 MB / 426.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 () * Number of clocked 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.0009623/0.4406, allocations: 431 kB / 0.5983 GB, free: 1.082 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008183/0.4415, allocations: 391.5 kB / 0.5986 GB, free: 0.6875 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4415, allocations: 0.9375 kB / 0.5986 GB, free: 0.6875 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003882/0.4419, allocations: 250.5 kB / 0.5989 GB, free: 440 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005454/0.4424, allocations: 109.5 kB / 0.599 GB, free: 332 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001978/0.4444, allocations: 1.369 MB / 0.6003 GB, free: 14.92 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004703/0.4449, allocations: 0.866 MB / 0.6012 GB, free: 14.03 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000272/0.4452, allocations: 67.3 kB / 0.6012 GB, free: 13.96 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.345e-05/0.4453, allocations: 31.42 kB / 0.6013 GB, free: 13.93 MB / 442.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4453, allocations: 0 / 0.6013 GB, free: 13.93 MB / 442.7 MB Notification: Performance of Templates: time 0.01118/0.4565, allocations: 6.001 MB / 0.6071 GB, free: 7.93 MB / 442.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