Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009475/0.0009474, allocations: 198.8 kB / 18.07 MB, free: 3.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 226.5 MB / 245.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007801/0.0007801, allocations: 94.39 kB / 297.4 MB, free: 6.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002116/0.0002117, allocations: 4 kB / 357.4 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.199/0.1992, allocations: 51.29 MB / 408.7 MB, free: 27.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2729/0.4722, allocations: 115.4 MB / 0.5118 GB, free: 99.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/0.4725, allocations: 93.94 kB / 0.5119 GB, free: 99.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1303/0.6028, allocations: 60.15 MB / 0.5706 GB, free: 41.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.6028, allocations: 0 / 0.5706 GB, free: 41.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001785/0.603, allocations: 91.86 kB / 0.5707 GB, free: 41.7 MB / 378.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.005603/0.6086, allocations: 3.335 MB / 0.574 GB, free: 38.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.6087, allocations: 8.031 kB / 0.574 GB, free: 38.28 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/0.6097, allocations: 428.3 kB / 0.5744 GB, free: 37.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003644/0.6134, allocations: 2.309 MB / 0.5766 GB, free: 35.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001121/0.6135, allocations: 218.3 kB / 0.5768 GB, free: 35.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003556/0.6138, allocations: 296.3 kB / 0.5771 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004879/0.6187, allocations: 3.821 MB / 0.5808 GB, free: 31.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.841e-05/0.6188, allocations: 8.094 kB / 0.5809 GB, free: 31.01 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002543/0.6191, allocations: 131.9 kB / 0.581 GB, free: 30.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.895e-05/0.6192, allocations: 145.7 kB / 0.5811 GB, free: 30.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004266/0.6235, allocations: 3.091 MB / 0.5841 GB, free: 27.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01476/0.6382, allocations: 12.21 MB / 0.5961 GB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002142/0.6404, allocations: 2.108 MB / 0.5981 GB, free: 12.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001193/0.6416, allocations: 1.015 MB / 0.5991 GB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002731/0.6419, allocations: 227.5 kB / 0.5993 GB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.6419, allocations: 51.86 kB / 0.5994 GB, free: 11.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=141): time 3.507e-06/0.642, allocations: 0 / 0.5994 GB, free: 11.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=163): time 0.01301/0.655, allocations: 7.923 MB / 0.6071 GB, free: 3.477 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.995e-05/0.655, allocations: 76.64 kB / 0.6072 GB, free: 3.387 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002388/0.6574, allocations: 1.993 MB / 0.6091 GB, free: 1.355 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001093/0.6575, allocations: 53.7 kB / 0.6092 GB, free: 1.297 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006921/0.6582, allocations: 1.437 MB / 0.6106 GB, free: 15.84 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004509/0.6587, allocations: 0.5623 MB / 0.6111 GB, free: 15.27 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.6588, allocations: 40 kB / 0.6112 GB, free: 15.23 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.659, allocations: 389.9 kB / 0.6115 GB, free: 14.84 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001446/0.6605, allocations: 0.9292 MB / 0.6125 GB, free: 13.91 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001811/0.6623, allocations: 1.491 MB / 0.6139 GB, free: 12.18 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003496/0.6658, allocations: 2.62 MB / 0.6165 GB, free: 9.328 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.091e-05/0.6658, allocations: 4 kB / 0.6165 GB, free: 9.324 MB / 394.7 MB Notification: Performance of matching and sorting (n=252) (initialization): time 0.005428/0.6712, allocations: 3.203 MB / 0.6196 GB, free: 6.102 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.57e-05/0.6713, allocations: 12 kB / 0.6196 GB, free: 6.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.367e-05/0.6713, allocations: 16 kB / 0.6196 GB, free: 6.074 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001341/0.6727, allocations: 0.5529 MB / 0.6202 GB, free: 5.512 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001666/0.6744, allocations: 475.2 kB / 0.6206 GB, free: 5.047 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007387/0.6818, allocations: 6.294 MB / 0.6268 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001877/0.6837, allocations: 143.8 kB / 0.6269 GB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001892/0.6839, allocations: 83.98 kB / 0.627 GB, free: 14.26 MB / 410.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 223 * 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.00187/0.6857, allocations: 0.9389 MB / 0.6279 GB, free: 13.31 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004704/0.6862, allocations: 217.3 kB / 0.6281 GB, free: 13.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005095/0.6913, allocations: 2.846 MB / 0.6309 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.688e-05/0.6914, allocations: 20 kB / 0.6309 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.6914, allocations: 4 kB / 0.6309 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.702e-05/0.6914, allocations: 7.969 kB / 0.6309 GB, free: 10.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01078/0.7022, allocations: 6.052 MB / 0.6368 GB, free: 4.031 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.896e-06/0.7022, allocations: 4 kB / 0.6368 GB, free: 4.027 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001177/0.7034, allocations: 291.5 kB / 0.6371 GB, free: 3.742 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001479/0.7049, allocations: 0.5883 MB / 0.6377 GB, free: 3.145 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001569/0.7051, allocations: 40.11 kB / 0.6377 GB, free: 3.105 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009989/0.7151, allocations: 7.992 MB / 0.6455 GB, free: 10.71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.7151, allocations: 7.938 kB / 0.6455 GB, free: 10.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007175/0.7223, allocations: 4.139 MB / 0.6496 GB, free: 6.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001332/0.7236, allocations: 0.5021 MB / 0.6501 GB, free: 5.977 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002847/0.7239, allocations: 36 kB / 0.6501 GB, free: 5.941 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/0.7251, allocations: 103.9 kB / 0.6502 GB, free: 5.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002872/0.7254, allocations: 129 kB / 0.6503 GB, free: 5.715 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/0.7255, allocations: 47.98 kB / 0.6504 GB, free: 5.668 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002585/0.7281, allocations: 1.359 MB / 0.6517 GB, free: 4.289 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7281, allocations: 0 / 0.6517 GB, free: 4.289 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002552/0.7307, allocations: 0.6408 MB / 0.6523 GB, free: 3.648 MB / 426.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * 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.0007308/0.7314, allocations: 423.9 kB / 0.6527 GB, free: 3.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004558/0.736, allocations: 2.769 MB / 0.6554 GB, free: 424 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.736, allocations: 0 / 0.6554 GB, free: 424 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002483/0.7385, allocations: 1.653 MB / 0.657 GB, free: 14.72 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003414/0.7419, allocations: 0.5189 MB / 0.6576 GB, free: 14.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0115/0.7534, allocations: 7.169 MB / 0.6646 GB, free: 6.973 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002179/0.7557, allocations: 2.248 MB / 0.6667 GB, free: 4.691 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000952/0.7566, allocations: 179.4 kB / 0.6669 GB, free: 4.516 MB / 442.7 MB Notification: Performance of SimCode: time 1.062e-06/0.7566, allocations: 0 / 0.6669 GB, free: 4.516 MB / 442.7 MB Notification: Performance of Templates: time 0.2423/0.9989, allocations: 81.65 MB / 0.7467 GB, free: 68.05 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches