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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001058/0.001058, allocations: 183.2 kB / 8.136 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.173/1.173, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.0008969/0.0008967, allocations: 88.64 kB / 261.7 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1842/0.1842, allocations: 37.96 MB / 347.7 MB, free: 7.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.992e-06/6.082e-06, allocations: 4 kB / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08695/0.08697, allocations: 56.31 MB / 466.3 MB, free: 6.48 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2648/0.3519, allocations: 101.4 MB / 0.5545 GB, free: 9.125 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.006297/0.3582, allocations: 2.168 MB / 0.5566 GB, free: 6.969 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.0406/0.3988, allocations: 14.67 MB / 0.5709 GB, free: 8.137 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.188e-05/0.3989, allocations: 8 kB / 0.5709 GB, free: 8.129 MB / 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.001283/0.4002, allocations: 0.7651 MB / 0.5717 GB, free: 7.316 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.4002, allocations: 12.02 kB / 0.5717 GB, free: 7.305 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.4004, allocations: 55.34 kB / 0.5717 GB, free: 7.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001655/0.402, allocations: 0.6988 MB / 0.5724 GB, free: 6.512 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.4021, allocations: 12 kB / 0.5724 GB, free: 6.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.431e-05/0.4021, allocations: 24 kB / 0.5724 GB, free: 6.477 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004527/0.4026, allocations: 237.5 kB / 0.5727 GB, free: 6.242 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000581/0.4032, allocations: 394.5 kB / 0.573 GB, free: 5.812 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.4032, allocations: 11.94 kB / 0.573 GB, free: 5.801 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.806e-05/0.4033, allocations: 3.906 kB / 0.5731 GB, free: 5.797 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.4033, allocations: 8 kB / 0.5731 GB, free: 5.789 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002311/0.4056, allocations: 1.784 MB / 0.5748 GB, free: 3.902 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002948/0.4059, allocations: 188.6 kB / 0.575 GB, free: 3.695 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001479/0.4061, allocations: 86.88 kB / 0.5751 GB, free: 3.602 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.733e-05/0.4061, allocations: 192 / 0.5751 GB, free: 3.602 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002245/0.4064, allocations: 146.5 kB / 0.5752 GB, free: 3.438 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.4064, allocations: 0 / 0.5752 GB, free: 3.438 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.001659/0.408, allocations: 0.7945 MB / 0.576 GB, free: 2.586 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9e-05/0.4081, allocations: 136.4 kB / 0.5761 GB, free: 2.422 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004049/0.4085, allocations: 304.9 kB / 0.5764 GB, free: 2.121 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/0.4086, allocations: 33.75 kB / 0.5764 GB, free: 2.082 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.4087, allocations: 223.5 kB / 0.5766 GB, free: 1.855 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.481e-05/0.4088, allocations: 82.97 kB / 0.5767 GB, free: 1.773 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.356e-05/0.4088, allocations: 0 / 0.5767 GB, free: 1.773 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.409, allocations: 350.7 kB / 0.5771 GB, free: 1.422 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.4092, allocations: 75.98 kB / 0.5771 GB, free: 1.348 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.4094, allocations: 196.2 kB / 0.5773 GB, free: 1.098 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001813/0.4096, allocations: 111.9 kB / 0.5774 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.4096, allocations: 11.94 kB / 0.5774 GB, free: 0.9766 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008053/0.4104, allocations: 373.7 kB / 0.5778 GB, free: 0.6016 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.4104, allocations: 4 kB / 0.5778 GB, free: 0.5977 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.4104, allocations: 4 kB / 0.5778 GB, free: 0.5938 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000455/0.4109, allocations: 92.72 kB / 0.5779 GB, free: 0.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000272/0.4112, allocations: 68.16 kB / 0.578 GB, free: 444 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002237/0.4134, allocations: 1.751 MB / 0.5797 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003175/0.4138, allocations: 11.94 kB / 0.5797 GB, free: 14.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.007e-05/0.4138, allocations: 20 kB / 0.5797 GB, free: 14.54 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcm_ser.motor.w_el:VARIABLE(unit = "rad/s" ) "rotor angular velocity el" type: Real 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 0.0001465/0.414, allocations: 116.8 kB / 0.5798 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.117e-05/0.414, allocations: 43.59 kB / 0.5798 GB, free: 14.37 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006692/0.4147, allocations: 269.9 kB / 0.5801 GB, free: 14.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.4147, allocations: 4 kB / 0.5801 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.4147, allocations: 0 / 0.5801 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.4148, allocations: 3.984 kB / 0.5801 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.4158, allocations: 0.6871 MB / 0.5808 GB, free: 13.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.4158, allocations: 7.938 kB / 0.5808 GB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002684/0.4161, allocations: 47.97 kB / 0.5808 GB, free: 13.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002295/0.4163, allocations: 48.81 kB / 0.5809 GB, free: 13.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.102e-05/0.4163, allocations: 3.938 kB / 0.5809 GB, free: 13.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001231/0.4176, allocations: 1.381 MB / 0.5822 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4176, allocations: 0 / 0.5822 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007856/0.4184, allocations: 0.49 MB / 0.5827 GB, free: 11.22 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/0.4185, allocations: 132.6 kB / 0.5828 GB, free: 11.07 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.61e-05/0.4186, allocations: 0 / 0.5828 GB, free: 11.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/0.4189, allocations: 19.98 kB / 0.5829 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.459e-05/0.4189, allocations: 19.91 kB / 0.5829 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.419, allocations: 12 kB / 0.5829 GB, free: 11.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0002751/0.4193, allocations: 235.2 kB / 0.5831 GB, free: 10.79 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006218/0.4199, allocations: 107.9 kB / 0.5832 GB, free: 10.69 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 () * 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.0007285/0.4206, allocations: 344.7 kB / 0.5835 GB, free: 10.37 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007914/0.4214, allocations: 362.2 kB / 0.5839 GB, free: 10 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.4214, allocations: 5.062 kB / 0.5839 GB, free: 10 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003717/0.4218, allocations: 222 kB / 0.5841 GB, free: 9.773 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005375/0.4224, allocations: 85.58 kB / 0.5842 GB, free: 9.691 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001694/0.4241, allocations: 0.7908 MB / 0.585 GB, free: 8.871 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005444/0.4246, allocations: 0.8961 MB / 0.5858 GB, free: 7.949 MB / 426.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4246, allocations: 0 / 0.5858 GB, free: 7.949 MB / 426.7 MB Notification: Performance of Templates: time 0.01107/0.4357, allocations: 5.432 MB / 0.5911 GB, free: 2.512 MB / 426.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