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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001139/0.001139, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00129/0.00129, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 62.11 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1399, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01943/0.1594, allocations: 11.91 MB / 370.8 MB, free: 1.352 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1696/0.3291, allocations: 4.04 MB / 374.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003234/0.3323, allocations: 75.66 kB / 374.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003951/0.3363, allocations: 0.8878 MB / 375.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005079/0.3415, allocations: 0.9731 MB / 376.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002434/0.344, allocations: 0.5554 MB / 377.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006514/0.3505, allocations: 3.413 MB / 380.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00621/0.3568, allocations: 3.09 MB / 383.9 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003864/0.3607, allocations: 1.589 MB / 385.4 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004616/0.3653, allocations: 2.039 MB / 387.5 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001603/0.367, allocations: 435.8 kB / 387.9 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002331/0.3693, allocations: 0.5418 MB / 388.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001901/0.3712, allocations: 1.26 MB / 389.7 MB, free: 5.199 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003759/0.375, allocations: 1.941 MB / 391.6 MB, free: 3.914 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006993/0.382, allocations: 5.69 MB / 397.3 MB, free: 148 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.864e-06/0.3821, allocations: 0 / 397.3 MB, free: 148 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3821, allocations: 1.344 kB / 397.3 MB, free: 148 kB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001911/0.3823, allocations: 0 / 397.3 MB, free: 148 kB / 302.1 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.01387/0.3962, allocations: 3.943 MB / 401.3 MB, free: 13.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.3963, allocations: 9.438 kB / 401.3 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002322/0.3986, allocations: 421.8 kB / 401.7 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007164/0.4058, allocations: 2.137 MB / 403.8 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002618/0.4061, allocations: 225.3 kB / 404.1 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007466/0.4068, allocations: 293.3 kB / 404.3 MB, free: 11.4 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009324/0.4162, allocations: 3.848 MB / 408.2 MB, free: 7.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001118/0.4163, allocations: 15.84 kB / 408.2 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004203/0.4167, allocations: 118.3 kB / 408.3 MB, free: 7.352 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002368/0.417, allocations: 153.7 kB / 408.5 MB, free: 7.199 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008863/0.4259, allocations: 3.247 MB / 411.7 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03061/0.4565, allocations: 12.03 MB / 423.8 MB, free: 7.645 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003974/0.4605, allocations: 1.939 MB / 425.7 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003036/0.4636, allocations: 1.166 MB / 426.9 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004033/0.464, allocations: 209.4 kB / 427.1 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.783e-05/0.4641, allocations: 47.88 kB / 427.1 MB, free: 4.133 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 7.214e-06/0.4641, allocations: 7.984 kB / 427.1 MB, free: 4.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.02159/0.4857, allocations: 7.009 MB / 434.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.609e-05/0.4858, allocations: 68.72 kB / 434.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00334/0.4892, allocations: 2.032 MB / 436.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002424/0.4894, allocations: 49.7 kB / 436.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001022/0.4905, allocations: 1.469 MB / 437.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004868/0.491, allocations: 0.5318 MB / 438.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005476/0.4915, allocations: 351.2 kB / 438.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.4916, allocations: 309.1 kB / 438.9 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00142/0.493, allocations: 0.8745 MB / 439.8 MB, free: 7.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001767/0.4948, allocations: 1.446 MB / 441.2 MB, free: 5.559 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00339/0.4982, allocations: 2.51 MB / 443.8 MB, free: 2.801 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.733e-05/0.4983, allocations: 4 kB / 443.8 MB, free: 2.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005198/0.5035, allocations: 3.013 MB / 446.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/0.5035, allocations: 19.98 kB / 446.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.778e-05/0.5036, allocations: 16 kB / 446.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008936/0.5045, allocations: 383.2 kB / 447.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/0.5062, allocations: 475.2 kB / 447.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006273/0.5125, allocations: 6.695 MB / 454.3 MB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002168/0.5147, allocations: 143.6 kB / 454.5 MB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000213/0.5149, allocations: 83.98 kB / 454.6 MB, free: 7.531 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * 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 (228): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001867/0.5168, allocations: 0.9344 MB / 455.5 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005658/0.5174, allocations: 213.3 kB / 455.7 MB, free: 6.375 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0046/0.522, allocations: 2.59 MB / 458.3 MB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.668e-05/0.522, allocations: 19.94 kB / 458.3 MB, free: 3.723 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.5221, allocations: 8 kB / 458.3 MB, free: 3.715 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.724e-05/0.5221, allocations: 11.97 kB / 458.3 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01063/0.5327, allocations: 5.82 MB / 464.2 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.5328, allocations: 4 kB / 464.2 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001248/0.534, allocations: 291.5 kB / 464.4 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00104/0.5351, allocations: 411.1 kB / 464.8 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001211/0.5352, allocations: 35.98 kB / 464.9 MB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007528/0.5427, allocations: 8.269 MB / 473.1 MB, free: 4.203 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.5428, allocations: 4 kB / 473.1 MB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006169/0.549, allocations: 3.845 MB / 477 MB, free: 264 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001488/0.5505, allocations: 490.4 kB / 477.5 MB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003479/0.5508, allocations: 32 kB / 477.5 MB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/0.552, allocations: 87.89 kB / 477.6 MB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002486/0.5522, allocations: 117 kB / 477.7 MB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/0.5523, allocations: 51.98 kB / 477.8 MB, free: 15.47 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002205/0.5546, allocations: 1.382 MB / 479.1 MB, free: 14.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5546, allocations: 4 kB / 479.1 MB, free: 14.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002599/0.5572, allocations: 0.5586 MB / 479.7 MB, free: 13.51 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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.der1.u) * 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 (146): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004822/0.5577, allocations: 210.8 kB / 479.9 MB, free: 13.29 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00401/0.5617, allocations: 2.643 MB / 482.5 MB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.5617, allocations: 0 / 482.5 MB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002155/0.5639, allocations: 1.572 MB / 484.1 MB, free: 8.969 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003068/0.567, allocations: 0.554 MB / 484.7 MB, free: 8.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/0.5775, allocations: 5.866 MB / 490.5 MB, free: 2.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002163/0.5797, allocations: 2.259 MB / 492.8 MB, free: 212 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001879/0.5816, allocations: 0.5261 MB / 493.3 MB, free: 15.67 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005679/0.5822, allocations: 167.3 kB / 493.5 MB, free: 15.51 MB / 414.1 MB Notification: Performance of SimCode: time 1.383e-06/0.5822, allocations: 0 / 493.5 MB, free: 15.51 MB / 414.1 MB Notification: Performance of Templates: time 0.05419/0.6364, allocations: 30.85 MB / 0.5121 GB, free: 0.9531 MB / 430.1 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches