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.001296/0.001296, allocations: 110.9 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001227/0.001226, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.4 MB / 246.9 MB, free: 8.992 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001234, allocations: 60.62 kB / 306.9 MB, free: 0.7812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09225/0.09351, allocations: 50.53 MB / 357.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01217/0.1057, allocations: 11.82 MB / 369.3 MB, free: 2.371 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1814/0.2872, allocations: 3.985 MB / 373.2 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002517/0.2897, allocations: 70 kB / 373.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002365/0.2922, allocations: 0.7759 MB / 374.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003088/0.2953, allocations: 0.8663 MB / 375 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001325/0.2967, allocations: 0.4932 MB / 375.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005445/0.3021, allocations: 3.713 MB / 379.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003335/0.3055, allocations: 2.626 MB / 381.8 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002513/0.308, allocations: 1.388 MB / 383.2 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002591/0.3106, allocations: 1.951 MB / 385.1 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005449/0.3111, allocations: 263 kB / 385.4 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001099/0.3122, allocations: 391.2 kB / 385.8 MB, free: 6.504 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001214/0.3135, allocations: 1.087 MB / 386.9 MB, free: 6.016 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001814/0.3153, allocations: 1.762 MB / 388.6 MB, free: 4.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003905/0.3192, allocations: 4.668 MB / 393.3 MB, free: 2.066 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3192, allocations: 1.594 kB / 393.3 MB, free: 2.066 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3192, allocations: 0 / 393.3 MB, free: 2.066 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001347/0.3194, allocations: 4 kB / 393.3 MB, free: 2.062 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.007889/0.3273, allocations: 3.939 MB / 397.2 MB, free: 15.39 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.3273, allocations: 17.61 kB / 397.2 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001196/0.3285, allocations: 417.9 kB / 397.7 MB, free: 15.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003248/0.3318, allocations: 2.069 MB / 399.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001712/0.332, allocations: 223.7 kB / 399.9 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003771/0.3324, allocations: 303.1 kB / 400.2 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006011/0.3384, allocations: 3.848 MB / 404.1 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.026e-05/0.3385, allocations: 7.906 kB / 404.1 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002643/0.3387, allocations: 123 kB / 404.2 MB, free: 10.49 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001436/0.3389, allocations: 149.7 kB / 404.4 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005029/0.3439, allocations: 3.255 MB / 407.6 MB, free: 7.078 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01856/0.3625, allocations: 12.16 MB / 419.8 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002417/0.365, allocations: 1.941 MB / 421.7 MB, free: 8.602 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00179/0.3668, allocations: 1.163 MB / 422.9 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003119/0.3671, allocations: 206.3 kB / 423.1 MB, free: 7.203 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.276e-05/0.3672, allocations: 55.81 kB / 423.1 MB, free: 7.141 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 2.935e-06/0.3672, allocations: 0 / 423.1 MB, free: 7.141 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01354/0.3807, allocations: 7.002 MB / 430.1 MB, free: 16 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.369e-05/0.3808, allocations: 68.72 kB / 430.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003071/0.3839, allocations: 2.044 MB / 432.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001353/0.3841, allocations: 57.64 kB / 432.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001146/0.3852, allocations: 1.459 MB / 433.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004558/0.3857, allocations: 0.5305 MB / 434.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005793/0.3863, allocations: 355.2 kB / 434.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.3864, allocations: 305.1 kB / 434.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/0.3877, allocations: 0.8784 MB / 435.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001719/0.3895, allocations: 1.45 MB / 437.3 MB, free: 8.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003196/0.3927, allocations: 2.5 MB / 439.8 MB, free: 5.824 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.3927, allocations: 4 kB / 439.8 MB, free: 5.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.00507/0.3978, allocations: 3.013 MB / 442.8 MB, free: 2.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.926e-05/0.3978, allocations: 16.03 kB / 442.8 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.401e-05/0.3978, allocations: 16 kB / 442.8 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009/0.3988, allocations: 395.1 kB / 443.2 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001646/0.4004, allocations: 467.2 kB / 443.7 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005864/0.4063, allocations: 6.142 MB / 449.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001966/0.4083, allocations: 139.7 kB / 449.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001483/0.4084, allocations: 83.98 kB / 450 MB, free: 11.12 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.001809/0.4102, allocations: 0.9305 MB / 450.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004491/0.4107, allocations: 225.3 kB / 451.2 MB, free: 9.961 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004115/0.4148, allocations: 2.594 MB / 453.8 MB, free: 7.324 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.4148, allocations: 16 kB / 453.8 MB, free: 7.309 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/0.4149, allocations: 4 kB / 453.8 MB, free: 7.305 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-05/0.4149, allocations: 11.95 kB / 453.8 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009154/0.424, allocations: 5.856 MB / 459.6 MB, free: 1.324 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.4241, allocations: 4 kB / 459.7 MB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/0.4253, allocations: 287.6 kB / 459.9 MB, free: 1.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009586/0.4263, allocations: 399.5 kB / 460.3 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001123/0.4264, allocations: 39.98 kB / 460.4 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006659/0.4331, allocations: 7.593 MB / 468 MB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.4331, allocations: 8.094 kB / 468 MB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005622/0.4387, allocations: 3.835 MB / 471.8 MB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/0.4399, allocations: 494.1 kB / 472.3 MB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003016/0.4402, allocations: 35.98 kB / 472.3 MB, free: 4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.4412, allocations: 91.89 kB / 472.4 MB, free: 3.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002366/0.4415, allocations: 117 kB / 472.5 MB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.854e-05/0.4416, allocations: 47.98 kB / 472.6 MB, free: 3.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002049/0.4436, allocations: 1.386 MB / 474 MB, free: 2.344 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4436, allocations: 0 / 474 MB, free: 2.344 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002047/0.4457, allocations: 0.5625 MB / 474.5 MB, free: 1.781 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.0004034/0.4461, allocations: 205.1 kB / 474.7 MB, free: 1.574 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003903/0.45, allocations: 2.624 MB / 477.3 MB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/0.45, allocations: 8.25 kB / 477.3 MB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002014/0.452, allocations: 1.576 MB / 478.9 MB, free: 13.26 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002463/0.4545, allocations: 0.5128 MB / 479.4 MB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01034/0.4649, allocations: 7.312 MB / 486.8 MB, free: 5.363 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002265/0.4672, allocations: 2.209 MB / 489 MB, free: 3.125 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008158/0.468, allocations: 183.4 kB / 489.1 MB, free: 2.945 MB / 398.1 MB Notification: Performance of SimCode: time 9.52e-07/0.468, allocations: 0 / 489.1 MB, free: 2.945 MB / 398.1 MB Notification: Performance of Templates: time 0.2852/0.7532, allocations: 94.71 MB / 0.5702 GB, free: 120.5 MB / 446.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/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