Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") [: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 trunk/package.mo): time 0.001035/0.001035, allocations: 198.8 kB / 8.542 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.223/1.223, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008909/0.0008909, allocations: 90.83 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.761e-06/5.861e-06, allocations: 0 / 343.1 MB, free: 8.707 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08674/0.08676, allocations: 51.48 MB / 394.6 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2599/0.3467, allocations: 114.5 MB / 0.4972 GB, free: 11.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001975/0.3469, allocations: 87.95 kB / 0.4973 GB, free: 11.37 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1532/0.5001, allocations: 59.17 MB / 0.5551 GB, free: 4.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002662/0.5004, allocations: 83.88 kB / 0.5552 GB, free: 4.828 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.00702/0.5075, allocations: 2.979 MB / 0.5581 GB, free: 1.785 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.5075, allocations: 8.031 kB / 0.5581 GB, free: 1.777 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001605/0.5091, allocations: 423.3 kB / 0.5585 GB, free: 1.359 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00483/0.514, allocations: 2.235 MB / 0.5607 GB, free: 15.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001025/0.5141, allocations: 96 kB / 0.5608 GB, free: 14.97 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000466/0.5146, allocations: 187.8 kB / 0.5609 GB, free: 14.79 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004989/0.5196, allocations: 2.847 MB / 0.5637 GB, free: 11.94 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005361/0.5249, allocations: 3.348 MB / 0.567 GB, free: 8.441 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.726e-05/0.525, allocations: 11.98 kB / 0.567 GB, free: 8.43 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002339/0.5253, allocations: 11.89 kB / 0.567 GB, free: 8.418 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001227/0.5254, allocations: 145.5 kB / 0.5672 GB, free: 8.277 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1544/0.6798, allocations: 11.64 MB / 0.5785 GB, free: 130.7 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001772/0.6816, allocations: 1.215 MB / 0.5797 GB, free: 130.7 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001415/0.6831, allocations: 1.068 MB / 0.5807 GB, free: 130.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003266/0.6834, allocations: 233.6 kB / 0.581 GB, free: 130.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.6835, allocations: 44.06 kB / 0.581 GB, free: 130.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=149): time 3.136e-06/0.6835, allocations: 0 / 0.581 GB, free: 130.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=171): time 0.01051/0.694, allocations: 5.959 MB / 0.5868 GB, free: 129.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/0.694, allocations: 74.75 kB / 0.5869 GB, free: 129.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002438/0.6965, allocations: 1.506 MB / 0.5884 GB, free: 129.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001585/0.6967, allocations: 27.95 kB / 0.5884 GB, free: 129.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004983/0.6972, allocations: 1.139 MB / 0.5895 GB, free: 129 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004576/0.6976, allocations: 0.5635 MB / 0.5901 GB, free: 128.6 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.6978, allocations: 0 / 0.5901 GB, free: 128.6 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.6979, allocations: 385.9 kB / 0.5904 GB, free: 128.3 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001183/0.6991, allocations: 0.9172 MB / 0.5913 GB, free: 128.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001338/0.7004, allocations: 1.459 MB / 0.5928 GB, free: 127.7 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/0.702, allocations: 1.188 MB / 0.5939 GB, free: 127.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.158e-05/0.702, allocations: 5.656 kB / 0.5939 GB, free: 127.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.0048/0.7068, allocations: 3.024 MB / 0.5969 GB, free: 127.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.7068, allocations: 9.438 kB / 0.5969 GB, free: 127.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.643e-05/0.7069, allocations: 16.47 kB / 0.5969 GB, free: 127.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001281/0.7082, allocations: 0.5358 MB / 0.5974 GB, free: 127.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/0.71, allocations: 473.8 kB / 0.5979 GB, free: 127.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005601/0.7156, allocations: 5.735 MB / 0.6035 GB, free: 124.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001819/0.7174, allocations: 74.5 kB / 0.6035 GB, free: 124.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002915/0.7177, allocations: 89.03 kB / 0.6036 GB, free: 124.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (234): * Single equations (assignments): 231 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000402/0.7182, allocations: 158.9 kB / 0.6038 GB, free: 124.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005245/0.7187, allocations: 205.4 kB / 0.604 GB, free: 124.7 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00432/0.723, allocations: 2.753 MB / 0.6067 GB, free: 124.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.723, allocations: 20.09 kB / 0.6067 GB, free: 124.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.7231, allocations: 3.969 kB / 0.6067 GB, free: 124.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.632e-05/0.7231, allocations: 27.02 kB / 0.6067 GB, free: 124.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008726/0.7318, allocations: 5.62 MB / 0.6122 GB, free: 123.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.7318, allocations: 0 / 0.6122 GB, free: 123.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00128/0.7331, allocations: 289.3 kB / 0.6125 GB, free: 123.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001445/0.7346, allocations: 0.574 MB / 0.613 GB, free: 123.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000112/0.7347, allocations: 17.47 kB / 0.6131 GB, free: 123.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006532/0.7413, allocations: 7.323 MB / 0.6202 GB, free: 118.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.7413, allocations: 2.25 kB / 0.6202 GB, free: 118.6 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005292/0.7466, allocations: 4.378 MB / 0.6245 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009815/0.7476, allocations: 0.4919 MB / 0.625 GB, free: 116.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003291/0.7479, allocations: 11.81 kB / 0.625 GB, free: 116.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.749, allocations: 61.97 kB / 0.625 GB, free: 116.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.7492, allocations: 99.84 kB / 0.6251 GB, free: 116.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/0.7493, allocations: 50.48 kB / 0.6252 GB, free: 116.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001505/0.7508, allocations: 1.128 MB / 0.6263 GB, free: 115.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001848/0.7527, allocations: 0.5375 MB / 0.6268 GB, free: 115.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 142 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005436/0.7533, allocations: 395 kB / 0.6272 GB, free: 115.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003245/0.7565, allocations: 2.649 MB / 0.6298 GB, free: 114.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.7565, allocations: 3.562 kB / 0.6298 GB, free: 114.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001895/0.7584, allocations: 1.546 MB / 0.6313 GB, free: 113.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002017/0.7605, allocations: 423 kB / 0.6317 GB, free: 113.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/0.7708, allocations: 4.846 MB / 0.6364 GB, free: 112 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002727/0.7736, allocations: 2.48 MB / 0.6388 GB, free: 111 MB / 442.7 MB Notification: Performance of SimCode: time 1.032e-06/0.7736, allocations: 0 / 0.6388 GB, free: 111 MB / 442.7 MB Notification: Performance of Templates: time 0.04648/0.8201, allocations: 29.45 MB / 0.6676 GB, free: 108.3 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches