Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007378/0.0007379, allocations: 94.59 kB / 16.65 MB, free: 6.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007935/0.0007935, allocations: 172.7 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 223.3 MB / 241.6 MB, free: 116 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002567/0.0002567, allocations: 9.219 kB / 301.4 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08846/0.08873, allocations: 50.41 MB / 351.8 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize): time 0.009418/0.09818, allocations: 8.352 MB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005513/0.1037, allocations: 2.816 MB / 363 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001469/0.1052, allocations: 35.88 kB / 363 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001809/0.1071, allocations: 0.5284 MB / 363.6 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00252/0.1096, allocations: 0.6645 MB / 364.2 MB, free: 7.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008789/0.1105, allocations: 279.7 kB / 364.5 MB, free: 6.957 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003638/0.1141, allocations: 2.724 MB / 367.2 MB, free: 4.219 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001896/0.1161, allocations: 1.441 MB / 368.7 MB, free: 2.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001365/0.1174, allocations: 0.8168 MB / 369.5 MB, free: 1.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001613/0.1191, allocations: 1.155 MB / 370.6 MB, free: 0.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002641/0.1194, allocations: 120 kB / 370.8 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005638/0.1199, allocations: 219.8 kB / 371 MB, free: 428 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.173/0.2929, allocations: 0.617 MB / 371.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001793/0.2947, allocations: 1.078 MB / 372.7 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004345/0.2991, allocations: 3.445 MB / 376.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/0.2991, allocations: 0 / 376.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.2992, allocations: 0 / 376.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001049/0.2993, allocations: 1.375 kB / 376.1 MB, free: 11.97 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.004755/0.304, allocations: 2.196 MB / 378.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.3041, allocations: 9.531 kB / 378.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008449/0.3049, allocations: 261.7 kB / 378.6 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002259/0.3072, allocations: 1.348 MB / 379.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000134/0.3074, allocations: 135.5 kB / 380.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000326/0.3077, allocations: 185.6 kB / 380.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004096/0.3118, allocations: 2.422 MB / 382.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.282e-05/0.3119, allocations: 7.094 kB / 382.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001789/0.312, allocations: 75.25 kB / 382.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-05/0.3121, allocations: 91.2 kB / 382.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003605/0.3158, allocations: 2.034 MB / 384.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01084/0.3266, allocations: 7.501 MB / 392.4 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001729/0.3284, allocations: 1.294 MB / 393.7 MB, free: 4.375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001522/0.3299, allocations: 0.9142 MB / 394.6 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001975/0.3301, allocations: 118 kB / 394.7 MB, free: 3.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.3302, allocations: 41.56 kB / 394.7 MB, free: 3.816 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.465e-06/0.3302, allocations: 0 / 394.7 MB, free: 3.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=100): time 0.008609/0.3388, allocations: 4.931 MB / 399.7 MB, free: 1.035 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.3389, allocations: 62.38 kB / 399.7 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001749/0.3406, allocations: 1.365 MB / 401.1 MB, free: 252 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.93e-05/0.3407, allocations: 40.98 kB / 401.1 MB, free: 208 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001111/0.3418, allocations: 0.9379 MB / 402.1 MB, free: 15.56 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002802/0.3421, allocations: 356.4 kB / 402.4 MB, free: 15.26 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/0.3423, allocations: 102.2 kB / 402.5 MB, free: 15.19 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3424, allocations: 354.1 kB / 402.9 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001032/0.3435, allocations: 0.6427 MB / 403.5 MB, free: 14.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.3447, allocations: 0.9324 MB / 404.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002297/0.347, allocations: 1.669 MB / 406.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.347, allocations: 4 kB / 406.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004355/0.3514, allocations: 2.401 MB / 408.5 MB, free: 9.098 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.3514, allocations: 14.31 kB / 408.5 MB, free: 9.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.3515, allocations: 8 kB / 408.5 MB, free: 9.078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001798/0.3533, allocations: 0.708 MB / 409.2 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008824/0.3541, allocations: 241.5 kB / 409.5 MB, free: 8.141 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/0.3646, allocations: 8.012 MB / 417.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/0.366, allocations: 83.91 kB / 417.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001805/0.3662, allocations: 52.09 kB / 417.6 MB, free: 15.75 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (6,29,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001348/0.3676, allocations: 0.6328 MB / 418.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004221/0.368, allocations: 146.2 kB / 418.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003562/0.3716, allocations: 1.915 MB / 420.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.3716, allocations: 8 kB / 420.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/0.3716, allocations: 4 kB / 420.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.3716, allocations: 7.922 kB / 420.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007687/0.3793, allocations: 4.025 MB / 424.4 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.758e-06/0.3794, allocations: 10.81 kB / 424.4 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008215/0.3802, allocations: 185.6 kB / 424.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001286/0.3815, allocations: 458 kB / 425 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.3816, allocations: 31.98 kB / 425 MB, free: 8.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00646/0.3881, allocations: 6.145 MB / 431.2 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.3881, allocations: 4.031 kB / 431.2 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004947/0.3931, allocations: 2.795 MB / 434 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001104/0.3942, allocations: 359.1 kB / 434.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005864/0.3948, allocations: 35.94 kB / 434.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/0.3961, allocations: 75.91 kB / 434.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002623/0.3964, allocations: 83.7 kB / 434.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.865e-05/0.3965, allocations: 27.98 kB / 434.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002261/0.3987, allocations: 0.9543 MB / 435.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3988, allocations: 0 / 435.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00205/0.4008, allocations: 432 kB / 435.9 MB, free: 12.98 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 (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,12,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.00045/0.4013, allocations: 178.8 kB / 436.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00366/0.405, allocations: 2.025 MB / 438.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.259e-06/0.405, allocations: 0 / 438.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002164/0.4071, allocations: 1.358 MB / 439.5 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00254/0.4097, allocations: 358.8 kB / 439.8 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007496/0.4172, allocations: 4.988 MB / 444.8 MB, free: 4.016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001576/0.4188, allocations: 1.693 MB / 446.5 MB, free: 2.285 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001154/0.42, allocations: 312 kB / 446.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003899/0.4204, allocations: 99.42 kB / 446.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of SimCode: time 2.445e-06/0.4204, allocations: 0 / 446.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of Templates: time 0.04418/0.4646, allocations: 22.67 MB / 469.6 MB, free: 11.46 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches