Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 102.8 kB / 17.06 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 196 kB / 18 MB, free: 4.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 52.02 kB / 351.3 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2658, allocations: 49.43 MB / 400.8 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03257/0.2984, allocations: 30.34 MB / 431.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02192/0.3204, allocations: 8.639 MB / 439.7 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007022/0.3274, allocations: 187.5 kB / 439.9 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01286/0.3403, allocations: 4.965 MB / 444.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01128/0.3516, allocations: 3.046 MB / 447.9 MB, free: 9.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006334/0.358, allocations: 1.616 MB / 449.5 MB, free: 7.891 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01439/0.3724, allocations: 8.713 MB / 458.3 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02338/0.3958, allocations: 12.85 MB / 471.1 MB, free: 2.199 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007496/0.4033, allocations: 4.242 MB / 475.4 MB, free: 13.95 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007771/0.4112, allocations: 4.73 MB / 480.1 MB, free: 9.199 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003595/0.4148, allocations: 1.164 MB / 481.2 MB, free: 8.035 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005538/0.4204, allocations: 1.523 MB / 482.8 MB, free: 6.512 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004217/0.4246, allocations: 2.416 MB / 485.2 MB, free: 4.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009851/0.4345, allocations: 4.669 MB / 489.9 MB, free: 15.4 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01843/0.4529, allocations: 15.81 MB / 0.4938 GB, free: 15.55 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.453, allocations: 3.938 kB / 0.4938 GB, free: 15.55 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.453, allocations: 0 / 0.4938 GB, free: 15.55 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003725/0.4534, allocations: 4 kB / 0.4938 GB, free: 15.54 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02663/0.48, allocations: 9.736 MB / 0.5033 GB, free: 5.711 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.4801, allocations: 16.03 kB / 0.5033 GB, free: 5.695 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02836/0.5084, allocations: 5.274 MB / 0.5085 GB, free: 416 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01173/0.5202, allocations: 5.093 MB / 0.5135 GB, free: 11.23 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007873/0.5211, allocations: 0.5416 MB / 0.514 GB, free: 10.69 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003371/0.5245, allocations: 0.7068 MB / 0.5147 GB, free: 9.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02566/0.5501, allocations: 11.32 MB / 0.5257 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003001/0.5505, allocations: 15.89 kB / 0.5258 GB, free: 14.56 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001866/0.5523, allocations: 296 kB / 0.526 GB, free: 14.27 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004908/0.5529, allocations: 443 kB / 0.5265 GB, free: 13.84 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02142/0.5743, allocations: 10.84 MB / 0.537 GB, free: 2.988 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2529/0.8272, allocations: 37.56 MB / 0.5737 GB, free: 96.81 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01313/0.8404, allocations: 28.11 MB / 0.6012 GB, free: 68.01 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003376/0.8438, allocations: 2.659 MB / 0.6038 GB, free: 65.35 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01079/0.8546, allocations: 7.892 MB / 0.6115 GB, free: 57.44 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.8547, allocations: 64.06 kB / 0.6115 GB, free: 57.38 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 3.968e-06/0.8547, allocations: 4 kB / 0.6115 GB, free: 57.37 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.0167/0.8714, allocations: 10.36 MB / 0.6217 GB, free: 47 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001472/0.8729, allocations: 2.003 MB / 0.6236 GB, free: 44.83 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004288/0.8772, allocations: 3.826 MB / 0.6274 GB, free: 41.02 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002691/0.8775, allocations: 61.7 kB / 0.6274 GB, free: 40.96 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001281/0.8788, allocations: 3.559 MB / 0.6309 GB, free: 37.38 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005003/0.8793, allocations: 0.8199 MB / 0.6317 GB, free: 36.57 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001099/0.8804, allocations: 0.9529 MB / 0.6326 GB, free: 35.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.664e-05/0.8804, allocations: 305.1 kB / 0.6329 GB, free: 35.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002249/0.8827, allocations: 1.891 MB / 0.6348 GB, free: 33.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003043/0.8858, allocations: 4.393 MB / 0.639 GB, free: 27.78 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00536/0.8911, allocations: 6.791 MB / 0.6457 GB, free: 19.78 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-05/0.8912, allocations: 28 kB / 0.6457 GB, free: 19.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009149/0.9003, allocations: 6.976 MB / 0.6525 GB, free: 12.76 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.815e-05/0.9004, allocations: 44 kB / 0.6526 GB, free: 12.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.501e-05/0.9005, allocations: 91.92 kB / 0.6526 GB, free: 12.62 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001702/0.9022, allocations: 0.7392 MB / 0.6534 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003113/0.9053, allocations: 1.115 MB / 0.6545 GB, free: 10.76 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005581/0.9109, allocations: 5.648 MB / 0.66 GB, free: 4.973 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003571/0.9145, allocations: 307.1 kB / 0.6603 GB, free: 4.672 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005798/0.9151, allocations: 276 kB / 0.6605 GB, free: 4.402 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003453/0.9186, allocations: 2.526 MB / 0.663 GB, free: 1.863 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007008/0.9193, allocations: 383.3 kB / 0.6634 GB, free: 1.484 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006908/0.9262, allocations: 4.274 MB / 0.6675 GB, free: 13.19 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.894e-05/0.9262, allocations: 24 kB / 0.6676 GB, free: 13.16 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/0.9263, allocations: 8 kB / 0.6676 GB, free: 13.16 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.151e-05/0.9263, allocations: 15.89 kB / 0.6676 GB, free: 13.14 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02361/0.9499, allocations: 14.28 MB / 0.6815 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-05/0.95, allocations: 16.03 kB / 0.6815 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001806/0.9518, allocations: 483.2 kB / 0.682 GB, free: 14.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001986/0.9538, allocations: 0.6891 MB / 0.6827 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002332/0.954, allocations: 71.98 kB / 0.6827 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009082/0.9631, allocations: 7.478 MB / 0.69 GB, free: 5.648 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001907/0.965, allocations: 1.96 MB / 0.692 GB, free: 3.535 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009931/0.975, allocations: 6.749 MB / 0.6985 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00186/0.9769, allocations: 0.7926 MB / 0.6993 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005139/0.9774, allocations: 67.98 kB / 0.6994 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001751/0.9792, allocations: 167.8 kB / 0.6995 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004314/0.9796, allocations: 217.3 kB / 0.6998 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001808/0.9798, allocations: 95.97 kB / 0.6998 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003789/0.9836, allocations: 2.513 MB / 0.7023 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.21e-07/0.9836, allocations: 0 / 0.7023 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004786/0.9884, allocations: 1.288 MB / 0.7036 GB, free: 7.387 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005182/0.9889, allocations: 233 kB / 0.7038 GB, free: 7.156 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008347/0.9973, allocations: 5.162 MB / 0.7088 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/0.9973, allocations: 0 / 0.7088 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003928/1.001, allocations: 2.413 MB / 0.7112 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004596/1.006, allocations: 0.9821 MB / 0.7121 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02265/1.029, allocations: 12.31 MB / 0.7242 GB, free: 2.039 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005384/1.034, allocations: 4.5 MB / 0.7286 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003747/1.038, allocations: 1.364 MB / 0.7299 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000776/1.039, allocations: 295.4 kB / 0.7302 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of SimCode: time 8.51e-07/1.039, allocations: 7.875 kB / 0.7302 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of Templates: time 0.2787/1.317, allocations: 53.31 MB / 0.7822 GB, free: 160.2 MB / 0.5294 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches