Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.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.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009309/0.0009311, allocations: 101.5 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001295/0.001295, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.535/1.535, allocations: 227.7 MB / 246.4 MB, free: 9.812 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002389/0.0002389, allocations: 8 kB / 307.1 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1081, allocations: 51.53 MB / 358.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize): time 0.008611/0.1167, allocations: 7.913 MB / 366.6 MB, free: 5.477 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005107/0.1218, allocations: 2.763 MB / 369.3 MB, free: 2.703 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007311/0.1226, allocations: 39.81 kB / 369.4 MB, free: 2.664 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00121/0.1238, allocations: 0.4932 MB / 369.8 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001466/0.1253, allocations: 0.6254 MB / 370.5 MB, free: 1.539 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005561/0.1259, allocations: 211.7 kB / 370.7 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.198/0.3239, allocations: 2.447 MB / 373.1 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002062/0.326, allocations: 1.23 MB / 374.4 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001864/0.3279, allocations: 0.8155 MB / 375.2 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001688/0.3296, allocations: 1.123 MB / 376.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000234/0.3298, allocations: 121.6 kB / 376.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005729/0.3304, allocations: 199.2 kB / 376.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007381/0.3311, allocations: 0.6196 MB / 377.2 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005187/0.3317, allocations: 451.8 kB / 377.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003716/0.3354, allocations: 2.975 MB / 380.6 MB, free: 9.371 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3354, allocations: 0 / 380.6 MB, free: 9.371 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3354, allocations: 0 / 380.6 MB, free: 9.371 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.75e-05/0.3355, allocations: 1 kB / 380.6 MB, free: 9.371 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: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.004345/0.3399, allocations: 2.238 MB / 382.9 MB, free: 8.289 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.3399, allocations: 9.938 kB / 382.9 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/0.341, allocations: 291.8 kB / 383.2 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002337/0.3433, allocations: 1.335 MB / 384.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001436/0.3435, allocations: 139.6 kB / 384.6 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003488/0.3438, allocations: 184.9 kB / 384.8 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00438/0.3482, allocations: 2.403 MB / 387.2 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.872e-05/0.3483, allocations: 6.5 kB / 387.2 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001732/0.3484, allocations: 73.17 kB / 387.3 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000129/0.3486, allocations: 90.48 kB / 387.4 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003611/0.3522, allocations: 2.016 MB / 389.4 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01062/0.3628, allocations: 7.493 MB / 396.9 MB, free: 1.656 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.3644, allocations: 1.291 MB / 398.2 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001379/0.3658, allocations: 0.9184 MB / 399.1 MB, free: 420 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002206/0.3661, allocations: 120.3 kB / 399.2 MB, free: 312 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.3661, allocations: 42.64 kB / 399.3 MB, free: 260 kB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 4.168e-06/0.3661, allocations: 0 / 399.3 MB, free: 260 kB / 302.1 MB Notification: Performance of matching and sorting (n=100): time 0.009313/0.3754, allocations: 4.921 MB / 404.2 MB, free: 12.1 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.3755, allocations: 64.41 kB / 404.3 MB, free: 12.03 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002116/0.3776, allocations: 1.385 MB / 405.6 MB, free: 10.62 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.699e-05/0.3777, allocations: 45.7 kB / 405.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006492/0.3784, allocations: 0.9014 MB / 406.6 MB, free: 9.664 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000277/0.3787, allocations: 349.8 kB / 406.9 MB, free: 9.324 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.677e-05/0.3787, allocations: 24 kB / 407 MB, free: 9.301 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.3789, allocations: 349.9 kB / 407.3 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009697/0.3799, allocations: 0.6428 MB / 407.9 MB, free: 8.312 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001186/0.3811, allocations: 0.9297 MB / 408.9 MB, free: 7.254 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/0.3822, allocations: 0.7681 MB / 409.6 MB, free: 6.488 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3822, allocations: 0 / 409.6 MB, free: 6.488 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003954/0.3862, allocations: 2.394 MB / 412 MB, free: 4.078 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.3862, allocations: 11.94 kB / 412 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/0.3863, allocations: 8 kB / 412.1 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001673/0.3879, allocations: 0.7197 MB / 412.8 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008305/0.3888, allocations: 239.7 kB / 413 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009767/0.3986, allocations: 8.004 MB / 421 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001124/0.3997, allocations: 88.14 kB / 421.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.783e-05/0.3998, allocations: 52 kB / 421.1 MB, free: 10.69 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (114): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(6,77.8%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00141/0.4012, allocations: 0.6263 MB / 421.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002626/0.4015, allocations: 142.2 kB / 421.9 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003253/0.4048, allocations: 1.917 MB / 423.8 MB, free: 7.973 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.4048, allocations: 8 kB / 423.8 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.4048, allocations: 4 kB / 423.8 MB, free: 7.961 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.4048, allocations: 3.984 kB / 423.8 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006459/0.4113, allocations: 4.031 MB / 427.9 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/0.4113, allocations: 0 / 427.9 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007928/0.4121, allocations: 179.8 kB / 428.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001129/0.4132, allocations: 471 kB / 428.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.568e-05/0.4133, allocations: 27.98 kB / 428.5 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006137/0.4195, allocations: 6.152 MB / 434.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4195, allocations: 0 / 434.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004498/0.424, allocations: 2.791 MB / 437.5 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008248/0.4248, allocations: 367.1 kB / 437.8 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001906/0.425, allocations: 23.98 kB / 437.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007231/0.4258, allocations: 79.92 kB / 437.9 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/0.426, allocations: 80.81 kB / 438 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-05/0.4261, allocations: 31.98 kB / 438.1 MB, free: 9.203 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001588/0.4276, allocations: 0.9469 MB / 439 MB, free: 8.254 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4277, allocations: 0 / 439 MB, free: 8.254 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001623/0.4293, allocations: 440 kB / 439.4 MB, free: 7.824 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi) * 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 (84): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003112/0.4296, allocations: 143.6 kB / 439.6 MB, free: 7.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003278/0.4329, allocations: 2.011 MB / 441.6 MB, free: 5.637 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.4329, allocations: 0 / 441.6 MB, free: 5.637 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002038/0.435, allocations: 1.349 MB / 442.9 MB, free: 4.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001646/0.4366, allocations: 378.8 kB / 443.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006652/0.4433, allocations: 4.77 MB / 448.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001403/0.4447, allocations: 1.696 MB / 449.8 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009092/0.4456, allocations: 312 kB / 450.1 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002794/0.4459, allocations: 99.42 kB / 450.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of SimCode: time 6.72e-07/0.4459, allocations: 0 / 450.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of Templates: time 0.03818/0.4841, allocations: 22.18 MB / 472.3 MB, free: 6.953 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Initialize/IMC_Initialize.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches