Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.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) 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(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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 3.2.3+maint.om/package.mo): time 0.002468/0.002467, allocations: 179.1 kB / 8.154 MB, free: 2.203 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.774/1.774, 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.001244/0.001244, allocations: 96.52 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.813e-05/1.828e-05, allocations: 4 kB / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2433, allocations: 47.56 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1735/0.4169, allocations: 112.5 MB / 474.3 MB, free: 5.496 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003313/0.4173, allocations: 91.94 kB / 474.4 MB, free: 5.406 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.4004/0.8177, allocations: 57.34 MB / 0.5193 GB, free: 97.08 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003615/0.8181, allocations: 87.39 kB / 0.5194 GB, free: 97.07 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.009812/0.8279, allocations: 2.859 MB / 0.5222 GB, free: 95.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.828, allocations: 5.594 kB / 0.5222 GB, free: 95.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002344/0.8303, allocations: 409.8 kB / 0.5226 GB, free: 95.61 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007509/0.8379, allocations: 2.182 MB / 0.5247 GB, free: 95.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001605/0.8381, allocations: 96.56 kB / 0.5248 GB, free: 95.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008874/0.839, allocations: 174.7 kB / 0.5249 GB, free: 95.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008797/0.8478, allocations: 2.733 MB / 0.5276 GB, free: 95.07 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01024/0.8581, allocations: 3.235 MB / 0.5308 GB, free: 93.88 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001367/0.8583, allocations: 5.938 kB / 0.5308 GB, free: 93.88 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004646/0.8588, allocations: 3.844 kB / 0.5308 GB, free: 93.88 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001485/0.8589, allocations: 135.8 kB / 0.5309 GB, free: 93.87 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03029/0.8892, allocations: 11.15 MB / 0.5418 GB, free: 88.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003199/0.8925, allocations: 1.109 MB / 0.5429 GB, free: 87.67 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002756/0.8953, allocations: 0.9875 MB / 0.5438 GB, free: 87.32 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004933/0.8958, allocations: 217.8 kB / 0.5441 GB, free: 87.14 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.71e-05/0.8959, allocations: 54 kB / 0.5441 GB, free: 87.08 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 4.479e-06/0.8959, allocations: 0 / 0.5441 GB, free: 87.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=155): time 0.0194/0.9153, allocations: 5.65 MB / 0.5496 GB, free: 84.77 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.9154, allocations: 67.84 kB / 0.5497 GB, free: 84.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004015/0.9194, allocations: 1.49 MB / 0.5511 GB, free: 84.11 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003803/0.9198, allocations: 27.08 kB / 0.5512 GB, free: 84.08 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005858/0.9204, allocations: 1.048 MB / 0.5522 GB, free: 83.26 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007405/0.9212, allocations: 0.5107 MB / 0.5527 GB, free: 82.86 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001619/0.9214, allocations: 0 / 0.5527 GB, free: 82.86 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.9215, allocations: 382.3 kB / 0.5531 GB, free: 82.52 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002283/0.9238, allocations: 0.8577 MB / 0.5539 GB, free: 82.2 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002496/0.9264, allocations: 1.39 MB / 0.5552 GB, free: 81.19 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002659/0.9291, allocations: 1.106 MB / 0.5563 GB, free: 80.3 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-05/0.9291, allocations: 12 kB / 0.5563 GB, free: 80.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.007525/0.9366, allocations: 2.741 MB / 0.559 GB, free: 77.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.9367, allocations: 8.438 kB / 0.559 GB, free: 77.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-05/0.9368, allocations: 23.66 kB / 0.559 GB, free: 77.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002175/0.9389, allocations: 0.5389 MB / 0.5596 GB, free: 77.42 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003391/0.9424, allocations: 433.3 kB / 0.56 GB, free: 77.06 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/0.9532, allocations: 5.765 MB / 0.5656 GB, free: 71.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001952/0.9552, allocations: 68.11 kB / 0.5657 GB, free: 71.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002754/0.9555, allocations: 87.75 kB / 0.5658 GB, free: 71.47 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 212 * 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 {(6,80.6%) 19,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004322/0.956, allocations: 77.14 kB / 0.5658 GB, free: 71.39 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007512/0.9567, allocations: 202 kB / 0.566 GB, free: 71.19 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007736/0.9645, allocations: 2.582 MB / 0.5686 GB, free: 69.02 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.256e-05/0.9646, allocations: 16 kB / 0.5686 GB, free: 69 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.778e-05/0.9646, allocations: 5.5 kB / 0.5686 GB, free: 69 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-05/0.9646, allocations: 7.969 kB / 0.5686 GB, free: 69 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0153/0.9799, allocations: 5.321 MB / 0.5738 GB, free: 64.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.491e-05/0.98, allocations: 2.188 kB / 0.5738 GB, free: 64.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002344/0.9823, allocations: 255.6 kB / 0.574 GB, free: 63.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002753/0.9851, allocations: 0.5846 MB / 0.5746 GB, free: 63.34 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002907/0.9855, allocations: 19.98 kB / 0.5746 GB, free: 63.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01217/0.9976, allocations: 7.326 MB / 0.5818 GB, free: 55.67 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.226e-06/0.9977, allocations: 4 kB / 0.5818 GB, free: 55.66 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00953/1.007, allocations: 4.097 MB / 0.5858 GB, free: 51.46 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001685/1.009, allocations: 479.7 kB / 0.5862 GB, free: 50.97 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005881/1.01, allocations: 12.56 kB / 0.5862 GB, free: 50.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00213/1.012, allocations: 67.81 kB / 0.5863 GB, free: 50.89 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002659/1.012, allocations: 81.19 kB / 0.5864 GB, free: 50.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001619/1.012, allocations: 43.98 kB / 0.5864 GB, free: 50.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002508/1.015, allocations: 1.107 MB / 0.5875 GB, free: 49.67 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003368/1.018, allocations: 0.5118 MB / 0.588 GB, free: 49.16 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 124 * 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.0008319/1.019, allocations: 389.4 kB / 0.5884 GB, free: 48.82 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006066/1.025, allocations: 2.544 MB / 0.5909 GB, free: 46.23 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/1.025, allocations: 8.188 kB / 0.5909 GB, free: 46.22 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003681/1.029, allocations: 1.477 MB / 0.5923 GB, free: 44.72 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003966/1.033, allocations: 405.8 kB / 0.5927 GB, free: 44.33 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/1.047, allocations: 4.71 MB / 0.5973 GB, free: 39.55 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003779/1.051, allocations: 2.395 MB / 0.5996 GB, free: 37.13 MB / 394.7 MB Notification: Performance of SimCode: time 1.944e-06/1.051, allocations: 0 / 0.5996 GB, free: 37.13 MB / 394.7 MB Notification: Performance of Templates: time 0.2649/1.316, allocations: 74.6 MB / 0.6725 GB, free: 143.4 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches