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.001057/0.001057, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001085/0.001085, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 247.5 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 60.09 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08863/0.08983, allocations: 50.54 MB / 358.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01213/0.102, allocations: 11.92 MB / 370.8 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1641/0.2661, allocations: 4.034 MB / 374.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001853/0.268, allocations: 78.5 kB / 374.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002138/0.2702, allocations: 0.893 MB / 375.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002759/0.273, allocations: 0.971 MB / 376.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001173/0.2742, allocations: 0.5569 MB / 377.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003527/0.2777, allocations: 3.411 MB / 380.8 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003073/0.2808, allocations: 3.09 MB / 383.9 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002215/0.283, allocations: 1.594 MB / 385.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002999/0.286, allocations: 2.039 MB / 387.5 MB, free: 5.859 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009033/0.287, allocations: 436.3 kB / 387.9 MB, free: 5.859 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001365/0.2883, allocations: 0.5408 MB / 388.5 MB, free: 5.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001124/0.2895, allocations: 1.257 MB / 389.7 MB, free: 5.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002024/0.2915, allocations: 1.951 MB / 391.7 MB, free: 3.887 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004885/0.2964, allocations: 5.688 MB / 397.4 MB, free: 140 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2964, allocations: 0 / 397.4 MB, free: 140 kB / 302.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.2964, allocations: 1.281 kB / 397.4 MB, free: 140 kB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001123/0.2965, allocations: 3.938 kB / 397.4 MB, free: 136 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.008446/0.305, allocations: 3.935 MB / 401.3 MB, free: 13.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.3051, allocations: 14.5 kB / 401.3 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001199/0.3063, allocations: 412.9 kB / 401.7 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003961/0.3102, allocations: 2.133 MB / 403.9 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.3104, allocations: 222 kB / 404.1 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004306/0.3109, allocations: 298.3 kB / 404.4 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006878/0.3178, allocations: 3.852 MB / 408.2 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.167e-05/0.3179, allocations: 11.84 kB / 408.2 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002549/0.3181, allocations: 120 kB / 408.3 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001403/0.3183, allocations: 149.7 kB / 408.5 MB, free: 7.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005066/0.3233, allocations: 3.255 MB / 411.7 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01763/0.341, allocations: 12.03 MB / 423.8 MB, free: 7.629 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002378/0.3434, allocations: 1.94 MB / 425.7 MB, free: 5.574 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001786/0.3452, allocations: 1.159 MB / 426.9 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002957/0.3455, allocations: 210.7 kB / 427.1 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.3456, allocations: 51.88 kB / 427.1 MB, free: 4.113 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 3.306e-06/0.3456, allocations: 4 kB / 427.1 MB, free: 4.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01297/0.3585, allocations: 7.006 MB / 434.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.264e-05/0.3586, allocations: 72.7 kB / 434.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003059/0.3617, allocations: 2.032 MB / 436.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000108/0.3618, allocations: 53.7 kB / 436.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009572/0.3628, allocations: 1.465 MB / 437.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003954/0.3632, allocations: 0.5292 MB / 438.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005382/0.3637, allocations: 347.2 kB / 438.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.812e-05/0.3638, allocations: 309.1 kB / 438.9 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001317/0.3651, allocations: 0.8784 MB / 439.8 MB, free: 7.238 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/0.3668, allocations: 1.45 MB / 441.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003177/0.37, allocations: 2.506 MB / 443.8 MB, free: 2.789 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/0.37, allocations: 4 kB / 443.8 MB, free: 2.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004704/0.3747, allocations: 3.01 MB / 446.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/0.3748, allocations: 12 kB / 446.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.029e-05/0.3748, allocations: 16 kB / 446.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008833/0.3757, allocations: 391.3 kB / 447.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/0.3773, allocations: 475.2 kB / 447.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005868/0.3832, allocations: 6.692 MB / 454.3 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.3849, allocations: 143.6 kB / 454.5 MB, free: 7.605 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001814/0.3851, allocations: 83.98 kB / 454.6 MB, free: 7.523 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.00167/0.3868, allocations: 0.9383 MB / 455.5 MB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005661/0.3874, allocations: 221.3 kB / 455.7 MB, free: 6.355 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004548/0.3919, allocations: 2.589 MB / 458.3 MB, free: 3.727 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.27e-05/0.392, allocations: 23.94 kB / 458.3 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.508e-05/0.392, allocations: 4.094 kB / 458.3 MB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/0.392, allocations: 11.91 kB / 458.3 MB, free: 3.688 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01165/0.4037, allocations: 5.825 MB / 464.2 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-05/0.4037, allocations: 4 kB / 464.2 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.405, allocations: 287.5 kB / 464.5 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/0.4061, allocations: 407.8 kB / 464.9 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001507/0.4062, allocations: 39.98 kB / 464.9 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007739/0.414, allocations: 8.264 MB / 473.2 MB, free: 4.188 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/0.414, allocations: 8 kB / 473.2 MB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006455/0.4205, allocations: 3.837 MB / 477 MB, free: 252 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001629/0.4222, allocations: 486.3 kB / 477.5 MB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007229/0.4229, allocations: 35.98 kB / 477.5 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001481/0.4244, allocations: 95.89 kB / 477.6 MB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002629/0.4247, allocations: 113 kB / 477.7 MB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/0.4248, allocations: 47.98 kB / 477.8 MB, free: 15.46 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002746/0.4275, allocations: 1.39 MB / 479.2 MB, free: 14.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4276, allocations: 0 / 479.2 MB, free: 14.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002531/0.4301, allocations: 0.5547 MB / 479.7 MB, free: 13.5 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.000524/0.4306, allocations: 210.8 kB / 479.9 MB, free: 13.28 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004188/0.4348, allocations: 2.647 MB / 482.6 MB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.473e-06/0.4349, allocations: 0 / 482.6 MB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002191/0.4371, allocations: 1.569 MB / 484.1 MB, free: 8.961 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003146/0.4402, allocations: 0.5647 MB / 484.7 MB, free: 8.41 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0108/0.451, allocations: 5.867 MB / 490.6 MB, free: 2.473 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002835/0.4539, allocations: 2.251 MB / 492.8 MB, free: 192 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002035/0.456, allocations: 0.5299 MB / 493.3 MB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007142/0.4567, allocations: 163.4 kB / 493.5 MB, free: 15.49 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4567, allocations: 0 / 493.5 MB, free: 15.49 MB / 414.1 MB Notification: Performance of Templates: time 0.05483/0.5115, allocations: 30.85 MB / 0.5121 GB, free: 0.9375 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 gbode -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