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/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_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") [: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.00104/0.001039, allocations: 183.2 kB / 8.132 MB, free: 2.23 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.13/1.13, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.000885/0.0008849, allocations: 82.19 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1657/0.1657, allocations: 37.97 MB / 347.7 MB, free: 7.465 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.461e-06/5.51e-06, allocations: 0 / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09077/0.09079, allocations: 56.31 MB / 466.3 MB, free: 6.477 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2704/0.3613, allocations: 99.49 MB / 0.5526 GB, free: 11.09 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/0.3615, allocations: 91.94 kB / 0.5526 GB, free: 11 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03511/0.3967, allocations: 12.6 MB / 0.565 GB, free: 14.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.623e-05/0.3967, allocations: 12 kB / 0.565 GB, free: 14.24 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001079/0.3978, allocations: 0.6842 MB / 0.5656 GB, free: 13.51 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.3979, allocations: 11.97 kB / 0.5656 GB, free: 13.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.398, allocations: 55.34 kB / 0.5657 GB, free: 13.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001468/0.3995, allocations: 0.6709 MB / 0.5664 GB, free: 12.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.371e-05/0.3996, allocations: 46.7 kB / 0.5664 GB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.383e-05/0.3996, allocations: 24 kB / 0.5664 GB, free: 12.66 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005302/0.4002, allocations: 281.9 kB / 0.5667 GB, free: 12.38 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006943/0.4009, allocations: 441 kB / 0.5671 GB, free: 11.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.4009, allocations: 7.938 kB / 0.5671 GB, free: 11.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.55e-05/0.401, allocations: 0 / 0.5671 GB, free: 11.9 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.401, allocations: 12 kB / 0.5671 GB, free: 11.89 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00231/0.4033, allocations: 1.9 MB / 0.569 GB, free: 9.883 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002257/0.4035, allocations: 146.9 kB / 0.5691 GB, free: 9.715 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001242/0.4037, allocations: 99.84 kB / 0.5692 GB, free: 9.609 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.4037, allocations: 8 kB / 0.5692 GB, free: 9.602 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.4037, allocations: 30.88 kB / 0.5693 GB, free: 9.562 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 1.804e-06/0.4037, allocations: 4 kB / 0.5693 GB, free: 9.559 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.001166/0.4049, allocations: 0.7033 MB / 0.5699 GB, free: 8.793 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.062e-05/0.405, allocations: 110.8 kB / 0.5701 GB, free: 8.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002562/0.4052, allocations: 239.5 kB / 0.5703 GB, free: 8.418 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.192e-05/0.4053, allocations: 29.69 kB / 0.5703 GB, free: 8.383 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.4054, allocations: 235.4 kB / 0.5705 GB, free: 8.148 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.033e-05/0.4055, allocations: 78.91 kB / 0.5706 GB, free: 8.07 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.141e-05/0.4055, allocations: 0 / 0.5706 GB, free: 8.07 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.4057, allocations: 346.9 kB / 0.5709 GB, free: 7.723 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.4058, allocations: 64 kB / 0.571 GB, free: 7.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.406, allocations: 189.2 kB / 0.5712 GB, free: 7.414 MB / 410.7 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.dcm_pm.rotor.w = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.0006915/0.4067, allocations: 273.2 kB / 0.5714 GB, free: 7.133 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.4067, allocations: 4 kB / 0.5714 GB, free: 7.129 MB / 410.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006971/0.4074, allocations: 348.6 kB / 0.5718 GB, free: 6.781 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.4074, allocations: 4 kB / 0.5718 GB, free: 6.777 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.4074, allocations: 4.594 kB / 0.5718 GB, free: 6.773 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003264/0.4078, allocations: 88.78 kB / 0.5719 GB, free: 6.684 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002591/0.408, allocations: 67.91 kB / 0.5719 GB, free: 6.617 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001925/0.41, allocations: 1.697 MB / 0.5736 GB, free: 4.801 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/0.4102, allocations: 19.84 kB / 0.5736 GB, free: 4.781 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.4103, allocations: 15.98 kB / 0.5736 GB, free: 4.766 MB / 410.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001357/0.4104, allocations: 117 kB / 0.5737 GB, free: 4.645 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.327e-05/0.4105, allocations: 35.62 kB / 0.5738 GB, free: 4.609 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.692e-05/0.4106, allocations: 30.89 kB / 0.5738 GB, free: 4.582 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.4106, allocations: 4 kB / 0.5738 GB, free: 4.578 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.4106, allocations: 0 / 0.5738 GB, free: 4.578 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.4106, allocations: 0 / 0.5738 GB, free: 4.578 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/0.4117, allocations: 0.6833 MB / 0.5745 GB, free: 3.832 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.4117, allocations: 0 / 0.5745 GB, free: 3.832 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000287/0.412, allocations: 47.91 kB / 0.5745 GB, free: 3.785 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.631e-05/0.4121, allocations: 20.86 kB / 0.5745 GB, free: 3.762 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/0.4121, allocations: 0 / 0.5745 GB, free: 3.762 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008343/0.4129, allocations: 1.244 MB / 0.5758 GB, free: 2.402 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.4129, allocations: 4.141 kB / 0.5758 GB, free: 2.398 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00053/0.4135, allocations: 498.1 kB / 0.5762 GB, free: 1.867 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.4136, allocations: 116.7 kB / 0.5763 GB, free: 1.734 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.69e-05/0.4137, allocations: 4 kB / 0.5763 GB, free: 1.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.4139, allocations: 7.984 kB / 0.5764 GB, free: 1.723 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.99e-05/0.4139, allocations: 11.98 kB / 0.5764 GB, free: 1.711 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.414, allocations: 8 kB / 0.5764 GB, free: 1.703 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002015/0.4142, allocations: 187 kB / 0.5766 GB, free: 1.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004933/0.4147, allocations: 88 kB / 0.5766 GB, free: 1.434 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.rotor.phi,dcm_pm.motor.i,loadInertia.w) * Number of discrete variables: 1 (system.initime) * Number of discrete 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 (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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001771/0.4149, allocations: 115.2 kB / 0.5767 GB, free: 1.312 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005552/0.4154, allocations: 318.9 kB / 0.5771 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.4154, allocations: 4 kB / 0.5771 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002518/0.4157, allocations: 190.8 kB / 0.5772 GB, free: 0.793 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004856/0.4162, allocations: 78.05 kB / 0.5773 GB, free: 0.7188 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001288/0.4175, allocations: 0.6519 MB / 0.5779 GB, free: 24 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005701/0.4181, allocations: 0.885 MB / 0.5788 GB, free: 15.11 MB / 426.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4181, allocations: 0 / 0.5788 GB, free: 15.11 MB / 426.7 MB Notification: Performance of Templates: time 0.008542/0.4266, allocations: 4.019 MB / 0.5827 GB, free: 11.1 MB / 426.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches