Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") [: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.001513/0.001513, allocations: 181.7 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.255/1.255, allocations: 205.2 MB / 213.7 MB, free: 13.92 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.0008418/0.0008418, allocations: 93.05 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1604/0.1604, allocations: 37.98 MB / 347.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.714e-06/7.734e-06, allocations: 4 kB / 410 MB, free: 46.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08494/0.08496, allocations: 56.3 MB / 466.3 MB, free: 6.473 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2721/0.3571, allocations: 101.9 MB / 0.555 GB, free: 8.617 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.006298/0.3634, allocations: 2.166 MB / 0.5571 GB, free: 6.465 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.04401/0.4075, allocations: 16.24 MB / 0.5729 GB, free: 6.031 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.691e-05/0.4076, allocations: 8 kB / 0.5729 GB, free: 6.023 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001466/0.409, allocations: 0.801 MB / 0.5737 GB, free: 5.172 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.4091, allocations: 11.97 kB / 0.5737 GB, free: 5.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.4092, allocations: 63.25 kB / 0.5738 GB, free: 5.098 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001671/0.4109, allocations: 0.7613 MB / 0.5745 GB, free: 4.297 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.4109, allocations: 16 kB / 0.5745 GB, free: 4.281 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.049e-05/0.411, allocations: 27.94 kB / 0.5746 GB, free: 4.254 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000539/0.4116, allocations: 289.9 kB / 0.5749 GB, free: 3.973 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006916/0.4123, allocations: 465.1 kB / 0.5753 GB, free: 3.473 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/0.4123, allocations: 3.906 kB / 0.5753 GB, free: 3.469 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.022e-05/0.4123, allocations: 4 kB / 0.5753 GB, free: 3.465 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.4124, allocations: 11.98 kB / 0.5753 GB, free: 3.453 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002465/0.4148, allocations: 1.991 MB / 0.5773 GB, free: 1.359 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002562/0.4151, allocations: 162.9 kB / 0.5774 GB, free: 1.176 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001238/0.4152, allocations: 82.97 kB / 0.5775 GB, free: 1.086 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.345e-05/0.4153, allocations: 3.953 kB / 0.5775 GB, free: 1.082 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002018/0.4155, allocations: 150.3 kB / 0.5776 GB, free: 0.9141 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 2.394e-06/0.4155, allocations: 0 / 0.5776 GB, free: 0.9141 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001467/0.417, allocations: 0.7946 MB / 0.5784 GB, free: 64 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.4171, allocations: 140.4 kB / 0.5786 GB, free: 15.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003649/0.4175, allocations: 329.1 kB / 0.5789 GB, free: 15.56 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.4175, allocations: 25.7 kB / 0.5789 GB, free: 15.53 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.4176, allocations: 247.5 kB / 0.5791 GB, free: 15.28 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.007e-05/0.4177, allocations: 90.78 kB / 0.5792 GB, free: 15.19 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.456e-05/0.4177, allocations: 0 / 0.5792 GB, free: 15.19 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.4178, allocations: 358.7 kB / 0.5796 GB, free: 14.83 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.418, allocations: 72.86 kB / 0.5796 GB, free: 14.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.4182, allocations: 208.9 kB / 0.5798 GB, free: 14.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001859/0.4184, allocations: 106.5 kB / 0.5799 GB, free: 14.39 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.4184, allocations: 4 kB / 0.5799 GB, free: 14.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007956/0.4192, allocations: 392.3 kB / 0.5803 GB, free: 14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.4192, allocations: 4 kB / 0.5803 GB, free: 14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.4193, allocations: 8 kB / 0.5803 GB, free: 13.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004272/0.4197, allocations: 96.7 kB / 0.5804 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002771/0.42, allocations: 67.91 kB / 0.5805 GB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001786/0.4218, allocations: 1.611 MB / 0.582 GB, free: 12.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002669/0.4221, allocations: 15.98 kB / 0.5821 GB, free: 12.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.899e-05/0.4221, allocations: 19.91 kB / 0.5821 GB, free: 12.06 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcm_par.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: 19 * 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 (40): * Single equations (assignments): 39 * 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 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001652/0.4223, allocations: 125.1 kB / 0.5822 GB, free: 11.93 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.941e-05/0.4224, allocations: 39.52 kB / 0.5822 GB, free: 11.89 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005466/0.4229, allocations: 270 kB / 0.5825 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.4229, allocations: 4 kB / 0.5825 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.4229, allocations: 0 / 0.5825 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.4229, allocations: 0 / 0.5825 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.424, allocations: 0.7024 MB / 0.5832 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4241, allocations: 3.938 kB / 0.5832 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003058/0.4244, allocations: 43.97 kB / 0.5832 GB, free: 10.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002193/0.4246, allocations: 44.81 kB / 0.5833 GB, free: 10.78 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.4246, allocations: 8 kB / 0.5833 GB, free: 10.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00114/0.4258, allocations: 1.377 MB / 0.5846 GB, free: 9.277 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4258, allocations: 0 / 0.5846 GB, free: 9.277 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006953/0.4265, allocations: 477.8 kB / 0.5851 GB, free: 8.773 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/0.4267, allocations: 136.5 kB / 0.5852 GB, free: 8.621 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.216e-05/0.4267, allocations: 4.125 kB / 0.5852 GB, free: 8.617 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002323/0.427, allocations: 15.98 kB / 0.5852 GB, free: 8.602 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.795e-05/0.427, allocations: 19.83 kB / 0.5852 GB, free: 8.582 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/0.4271, allocations: 15.94 kB / 0.5853 GB, free: 8.566 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.000263/0.4273, allocations: 251.2 kB / 0.5855 GB, free: 8.324 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005378/0.4279, allocations: 115.9 kB / 0.5856 GB, free: 8.211 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.0007162/0.4286, allocations: 340.2 kB / 0.5859 GB, free: 7.891 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006851/0.4293, allocations: 341.4 kB / 0.5863 GB, free: 7.547 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4293, allocations: 0 / 0.5863 GB, free: 7.547 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000342/0.4297, allocations: 214.9 kB / 0.5865 GB, free: 7.328 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005741/0.4303, allocations: 93.88 kB / 0.5866 GB, free: 7.234 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001615/0.4319, allocations: 0.8732 MB / 0.5874 GB, free: 6.332 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005226/0.4324, allocations: 0.9197 MB / 0.5883 GB, free: 5.387 MB / 426.7 MB Notification: Performance of SimCode: time 3.1e-07/0.4324, allocations: 0 / 0.5883 GB, free: 5.387 MB / 426.7 MB Notification: Performance of Templates: time 0.01097/0.4434, allocations: 5.676 MB / 0.5939 GB, free: 15.7 MB / 442.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches