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.001304/0.001304, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001476/0.001476, allocations: 205.8 kB / 18.13 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 246.3 MB, free: 10.88 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 59.41 kB / 306.3 MB, free: 1.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09037/0.09149, allocations: 50.54 MB / 356.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01282/0.1043, allocations: 11.82 MB / 368.6 MB, free: 2.668 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1937/0.2981, allocations: 3.984 MB / 372.6 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002055/0.3002, allocations: 70.88 kB / 372.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002071/0.3023, allocations: 0.7722 MB / 373.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002524/0.3049, allocations: 0.8695 MB / 374.3 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001087/0.306, allocations: 0.4939 MB / 374.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004289/0.3103, allocations: 3.715 MB / 378.5 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003142/0.3134, allocations: 2.629 MB / 381.2 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002232/0.3157, allocations: 1.39 MB / 382.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0026/0.3183, allocations: 1.946 MB / 384.5 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005073/0.3188, allocations: 269.5 kB / 384.8 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001049/0.3199, allocations: 393.9 kB / 385.1 MB, free: 6.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001007/0.3209, allocations: 1.085 MB / 386.2 MB, free: 6.203 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001701/0.3226, allocations: 1.758 MB / 388 MB, free: 5.098 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004232/0.3268, allocations: 5.465 MB / 393.4 MB, free: 1.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3268, allocations: 0 / 393.4 MB, free: 1.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3268, allocations: 0.75 kB / 393.4 MB, free: 1.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.879e-05/0.3269, allocations: 0 / 393.4 MB, free: 1.684 MB / 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.007472/0.3344, allocations: 3.945 MB / 397.4 MB, free: 15 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.3345, allocations: 7.875 kB / 397.4 MB, free: 15 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001984/0.3365, allocations: 419.9 kB / 397.8 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004091/0.3406, allocations: 2.071 MB / 399.9 MB, free: 13.37 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001856/0.3408, allocations: 223 kB / 400.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003927/0.3412, allocations: 303.8 kB / 400.4 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006707/0.3479, allocations: 3.853 MB / 404.2 MB, free: 9.887 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.168e-05/0.348, allocations: 3.906 kB / 404.3 MB, free: 9.883 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002567/0.3482, allocations: 123.3 kB / 404.4 MB, free: 9.766 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001436/0.3484, allocations: 149.7 kB / 404.5 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005427/0.3538, allocations: 3.255 MB / 407.8 MB, free: 6.352 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01886/0.3727, allocations: 12.15 MB / 419.9 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002422/0.3752, allocations: 1.95 MB / 421.9 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001823/0.377, allocations: 1.161 MB / 423 MB, free: 6.711 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002899/0.3773, allocations: 210.1 kB / 423.2 MB, free: 6.473 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.082e-05/0.3773, allocations: 47.88 kB / 423.3 MB, free: 6.418 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 3.297e-06/0.3774, allocations: 3.938 kB / 423.3 MB, free: 6.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01376/0.3911, allocations: 7.02 MB / 430.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/0.3912, allocations: 68.72 kB / 430.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002907/0.3941, allocations: 2.032 MB / 432.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.96e-05/0.3942, allocations: 53.7 kB / 432.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001062/0.3953, allocations: 1.458 MB / 433.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000478/0.3958, allocations: 0.5307 MB / 434.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005354/0.3963, allocations: 351.3 kB / 434.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.185e-05/0.3964, allocations: 305.1 kB / 435.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001309/0.3977, allocations: 0.8784 MB / 436 MB, free: 9.539 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001677/0.3994, allocations: 1.453 MB / 437.4 MB, free: 7.844 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003137/0.4026, allocations: 2.503 MB / 439.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.508e-06/0.4026, allocations: 4 kB / 439.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.00477/0.4074, allocations: 3.013 MB / 442.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.4074, allocations: 12.5 kB / 443 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.108e-05/0.4074, allocations: 20 kB / 443 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000873/0.4083, allocations: 395 kB / 443.4 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001582/0.4099, allocations: 471.2 kB / 443.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005752/0.4157, allocations: 6.133 MB / 450 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.4172, allocations: 135.7 kB / 450.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001474/0.4174, allocations: 83.98 kB / 450.2 MB, free: 10.4 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.001618/0.419, allocations: 0.9421 MB / 451.1 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00034/0.4194, allocations: 217.3 kB / 451.3 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00414/0.4235, allocations: 2.597 MB / 453.9 MB, free: 6.598 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.48e-05/0.4235, allocations: 16 kB / 453.9 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.4235, allocations: 4 kB / 453.9 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.391e-05/0.4236, allocations: 7.969 kB / 454 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008804/0.4324, allocations: 5.853 MB / 459.8 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.4324, allocations: 4 kB / 459.8 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001179/0.4336, allocations: 295.5 kB / 460.1 MB, free: 316 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009814/0.4346, allocations: 395.6 kB / 460.5 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/0.4347, allocations: 39.98 kB / 460.5 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007026/0.4417, allocations: 7.589 MB / 468.1 MB, free: 7.754 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.456e-06/0.4418, allocations: 8 kB / 468.1 MB, free: 7.746 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006412/0.4482, allocations: 3.835 MB / 472 MB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001451/0.4497, allocations: 498.1 kB / 472.4 MB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006317/0.4503, allocations: 36 kB / 472.5 MB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001444/0.4518, allocations: 91.89 kB / 472.6 MB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002599/0.452, allocations: 113 kB / 472.7 MB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.4522, allocations: 47.98 kB / 472.7 MB, free: 3.027 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002905/0.4551, allocations: 1.39 MB / 474.1 MB, free: 1.617 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4551, allocations: 0 / 474.1 MB, free: 1.617 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002983/0.4581, allocations: 0.5586 MB / 474.7 MB, free: 1.059 MB / 382.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.0005236/0.4586, allocations: 206.8 kB / 474.9 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004189/0.4628, allocations: 2.626 MB / 477.5 MB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.4628, allocations: 4 kB / 477.5 MB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002095/0.4649, allocations: 1.577 MB / 479.1 MB, free: 12.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002739/0.4677, allocations: 0.5132 MB / 479.6 MB, free: 12.03 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01032/0.478, allocations: 7.244 MB / 486.8 MB, free: 4.715 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001857/0.4799, allocations: 2.255 MB / 489.1 MB, free: 2.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001746/0.4817, allocations: 0.5299 MB / 489.6 MB, free: 1.895 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004956/0.4822, allocations: 159.4 kB / 489.8 MB, free: 1.738 MB / 398.1 MB Notification: Performance of SimCode: time 2.254e-06/0.4822, allocations: 4 kB / 489.8 MB, free: 1.734 MB / 398.1 MB Notification: Performance of Templates: time 0.05477/0.5369, allocations: 29.7 MB / 0.5073 GB, free: 4.289 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins/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