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.001571/0.001571, allocations: 114.8 kB / 18.41 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001921/0.001921, allocations: 208.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.327/1.327, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.001241, allocations: 58.88 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08778/0.08904, allocations: 50.54 MB / 358.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize): time 0.01032/0.0994, allocations: 8.942 MB / 367.9 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005634/0.1051, allocations: 2.952 MB / 370.8 MB, free: 1.363 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001341/0.1064, allocations: 43.81 kB / 370.8 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001738/0.1082, allocations: 0.6133 MB / 371.5 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1511/0.2593, allocations: 0.727 MB / 372.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001416/0.2608, allocations: 331 kB / 372.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004052/0.2648, allocations: 2.382 MB / 374.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003035/0.2679, allocations: 1.761 MB / 376.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002454/0.2704, allocations: 1.069 MB / 377.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002911/0.2733, allocations: 1.345 MB / 379.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007587/0.2741, allocations: 282.8 kB / 379.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001291/0.2754, allocations: 378.5 kB / 379.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001105/0.2765, allocations: 0.7949 MB / 380.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001891/0.2784, allocations: 1.271 MB / 381.8 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006054/0.2845, allocations: 3.699 MB / 385.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.2846, allocations: 5.969 kB / 385.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2846, allocations: 0 / 385.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.269e-05/0.2847, allocations: 0 / 385.5 MB, free: 8.07 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.00894/0.2936, allocations: 2.596 MB / 388.1 MB, free: 6.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/0.2937, allocations: 9.719 kB / 388.1 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001598/0.2953, allocations: 287.2 kB / 388.4 MB, free: 6.453 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004236/0.2996, allocations: 1.404 MB / 389.8 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001779/0.2998, allocations: 132.4 kB / 389.9 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004974/0.3003, allocations: 184 kB / 390.1 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006086/0.3064, allocations: 2.413 MB / 392.5 MB, free: 4.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.028e-05/0.3065, allocations: 10.59 kB / 392.5 MB, free: 4.168 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002374/0.3067, allocations: 74.16 kB / 392.6 MB, free: 4.113 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001445/0.3069, allocations: 88.05 kB / 392.7 MB, free: 4.098 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004771/0.3117, allocations: 2.016 MB / 394.7 MB, free: 3.074 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01572/0.3274, allocations: 7.368 MB / 402.1 MB, free: 13.72 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002698/0.3302, allocations: 1.276 MB / 403.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002322/0.3325, allocations: 0.9067 MB / 404.2 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003118/0.3328, allocations: 114.1 kB / 404.3 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.961e-05/0.3329, allocations: 47.56 kB / 404.4 MB, free: 11.3 MB / 318.1 MB Notification: Performance of pre-optimization done (n=84): time 3.987e-06/0.3329, allocations: 0 / 404.4 MB, free: 11.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=100): time 0.01299/0.3459, allocations: 4.888 MB / 409.3 MB, free: 6.324 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.346, allocations: 68.34 kB / 409.3 MB, free: 6.246 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002101/0.3481, allocations: 1.393 MB / 410.7 MB, free: 4.836 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.983e-05/0.3482, allocations: 49.64 kB / 410.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006266/0.3488, allocations: 0.9004 MB / 411.7 MB, free: 3.871 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002664/0.3491, allocations: 350.4 kB / 412 MB, free: 3.531 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003792/0.3495, allocations: 218.8 kB / 412.2 MB, free: 3.309 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.3497, allocations: 353.9 kB / 412.6 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009209/0.3506, allocations: 0.6272 MB / 413.2 MB, free: 2.332 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001069/0.3517, allocations: 0.9258 MB / 414.1 MB, free: 1.277 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002135/0.3538, allocations: 1.651 MB / 415.8 MB, free: 15.51 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3538, allocations: 0 / 415.8 MB, free: 15.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004033/0.3579, allocations: 2.394 MB / 418.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.3579, allocations: 8 kB / 418.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.3579, allocations: 8 kB / 418.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00175/0.3597, allocations: 0.7165 MB / 418.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008766/0.3606, allocations: 235.7 kB / 419.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01054/0.3711, allocations: 8.738 MB / 427.9 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.3729, allocations: 87.75 kB / 428 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.3731, allocations: 44 kB / 428 MB, free: 2.996 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.001315/0.3744, allocations: 0.634 MB / 428.7 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002946/0.3747, allocations: 150.3 kB / 428.8 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003151/0.3779, allocations: 1.897 MB / 430.7 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.278e-06/0.3779, allocations: 12 kB / 430.7 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3779, allocations: 0 / 430.7 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.263e-05/0.3779, allocations: 7.984 kB / 430.7 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00685/0.3848, allocations: 3.995 MB / 434.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.3848, allocations: 4 kB / 434.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008075/0.3856, allocations: 179.8 kB / 434.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001298/0.3869, allocations: 471 kB / 435.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-05/0.387, allocations: 23.98 kB / 435.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006307/0.3933, allocations: 6.695 MB / 442.1 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/0.3934, allocations: 4 kB / 442.1 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004289/0.3977, allocations: 2.775 MB / 444.8 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009133/0.3986, allocations: 367.1 kB / 445.2 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002003/0.3988, allocations: 24 kB / 445.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007808/0.3996, allocations: 63.92 kB / 445.3 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002232/0.3998, allocations: 84.88 kB / 445.4 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-05/0.3999, allocations: 27.98 kB / 445.4 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001498/0.4014, allocations: 0.9586 MB / 446.4 MB, free: 36 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4014, allocations: 0 / 446.4 MB, free: 36 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.001478/0.4029, allocations: 436.9 kB / 446.8 MB, free: 15.61 MB / 366.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.0003591/0.4033, allocations: 178.1 kB / 447 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003375/0.4067, allocations: 2.024 MB / 449 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.4067, allocations: 4.062 kB / 449 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002093/0.4088, allocations: 1.339 MB / 450.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001998/0.4108, allocations: 380.1 kB / 450.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007417/0.4182, allocations: 4.014 MB / 454.7 MB, free: 7.559 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001556/0.4198, allocations: 1.696 MB / 456.4 MB, free: 5.828 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001149/0.421, allocations: 320 kB / 456.7 MB, free: 5.512 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004092/0.4214, allocations: 99.42 kB / 456.8 MB, free: 5.414 MB / 366.1 MB Notification: Performance of SimCode: time 3.297e-06/0.4214, allocations: 0 / 456.8 MB, free: 5.414 MB / 366.1 MB Notification: Performance of Templates: time 0.043/0.4644, allocations: 24.13 MB / 481 MB, free: 13.52 MB / 398.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Initialize/IMC_Initialize.csv","/var/lib/jenkins1/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