Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001581/0.00158, allocations: 114.3 kB / 17.7 MB, free: 5.309 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.001909/0.001909, allocations: 191 kB / 18.63 MB, free: 4.379 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.347/1.347, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009658/0.0009659, allocations: 54.48 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09428/0.09527, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01129/0.1066, allocations: 9.647 MB / 361.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006385/0.1131, allocations: 3.564 MB / 364.7 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001112/0.1142, allocations: 47.81 kB / 364.8 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001691/0.1159, allocations: 0.6637 MB / 365.4 MB, free: 5.719 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002409/0.1184, allocations: 0.8271 MB / 366.3 MB, free: 4.887 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.1194, allocations: 463.2 kB / 366.7 MB, free: 4.434 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002904/0.1223, allocations: 2.642 MB / 369.4 MB, free: 1.777 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1608/0.2832, allocations: 1.873 MB / 371.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001903/0.2851, allocations: 1.185 MB / 372.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002056/0.2872, allocations: 1.496 MB / 373.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005767/0.2878, allocations: 305.4 kB / 374.2 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001096/0.2889, allocations: 0.5692 MB / 374.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009139/0.2898, allocations: 1.023 MB / 375.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001299/0.2911, allocations: 1.479 MB / 377.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003815/0.2949, allocations: 4.287 MB / 381.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2949, allocations: 5.656 kB / 381.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2949, allocations: 0 / 381.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.979e-05/0.295, allocations: 2.406 kB / 381.6 MB, free: 10.54 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.005636/0.3007, allocations: 3.155 MB / 384.7 MB, free: 8.812 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/0.3007, allocations: 9.812 kB / 384.7 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009381/0.3017, allocations: 326.4 kB / 385.1 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00279/0.3045, allocations: 1.693 MB / 386.7 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.3046, allocations: 157.1 kB / 386.9 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003107/0.3049, allocations: 208.3 kB / 387.1 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004118/0.309, allocations: 2.695 MB / 389.8 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.064e-05/0.3091, allocations: 6.812 kB / 389.8 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00019/0.3093, allocations: 82.94 kB / 389.9 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001087/0.3094, allocations: 97.64 kB / 390 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003467/0.3129, allocations: 2.277 MB / 392.3 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0125/0.3254, allocations: 8.147 MB / 400.4 MB, free: 15.42 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002799/0.3283, allocations: 1.623 MB / 402 MB, free: 14.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001761/0.33, allocations: 1.096 MB / 403.1 MB, free: 13.78 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002501/0.3303, allocations: 121.7 kB / 403.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/0.3303, allocations: 43.56 kB / 403.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 2.955e-06/0.3304, allocations: 0 / 403.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01279/0.3432, allocations: 6.448 MB / 409.7 MB, free: 7.039 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.3432, allocations: 68.72 kB / 409.8 MB, free: 6.957 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003066/0.3463, allocations: 2.156 MB / 412 MB, free: 4.754 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000136/0.3464, allocations: 49.7 kB / 412 MB, free: 4.699 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008124/0.3473, allocations: 1.099 MB / 413.1 MB, free: 3.59 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000364/0.3476, allocations: 463.4 kB / 413.6 MB, free: 3.141 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004264/0.3481, allocations: 239.5 kB / 413.8 MB, free: 2.898 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.3482, allocations: 353.9 kB / 414.1 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001287/0.3495, allocations: 0.7639 MB / 414.9 MB, free: 1.785 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00138/0.3509, allocations: 1.009 MB / 415.9 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002733/0.3537, allocations: 1.856 MB / 417.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.3537, allocations: 11 kB / 417.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004887/0.3586, allocations: 2.769 MB / 420.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.3586, allocations: 8 kB / 420.6 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.3586, allocations: 8.25 kB / 420.6 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001892/0.3605, allocations: 0.7842 MB / 421.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/0.3616, allocations: 269.2 kB / 421.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01144/0.3731, allocations: 9.59 MB / 431.2 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.3746, allocations: 91.89 kB / 431.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001515/0.3747, allocations: 51.98 kB / 431.3 MB, free: 1.02 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * Array equations: 2 * 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,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001324/0.376, allocations: 0.7408 MB / 432.1 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003928/0.3764, allocations: 197.6 kB / 432.3 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004432/0.3809, allocations: 2.501 MB / 434.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.697e-05/0.3809, allocations: 16 kB / 434.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.381, allocations: 4.75 kB / 434.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.381, allocations: 7.969 kB / 434.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01033/0.3913, allocations: 4.942 MB / 439.7 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.364e-05/0.3914, allocations: 4 kB / 439.8 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.3924, allocations: 217.8 kB / 440 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001794/0.3942, allocations: 0.6521 MB / 440.6 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001422/0.3944, allocations: 35.97 kB / 440.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009408/0.4038, allocations: 8.708 MB / 449.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.4038, allocations: 4.031 kB / 449.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006098/0.4099, allocations: 3.537 MB / 452.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/0.4111, allocations: 442.4 kB / 453.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002733/0.4114, allocations: 35.97 kB / 453.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009673/0.4124, allocations: 87.89 kB / 453.5 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000282/0.4127, allocations: 100.8 kB / 453.6 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.4128, allocations: 39.97 kB / 453.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002294/0.4151, allocations: 1.519 MB / 455.1 MB, free: 8.789 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4151, allocations: 0 / 455.1 MB, free: 8.789 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001919/0.417, allocations: 0.5234 MB / 455.6 MB, free: 8.266 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (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,PI.x) * 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 (97): * Single equations (assignments): 91 * Array equations: 2 * 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,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001104/0.4181, allocations: 464.1 kB / 456.1 MB, free: 7.961 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004298/0.4224, allocations: 2.389 MB / 458.5 MB, free: 5.578 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.4224, allocations: 0 / 458.5 MB, free: 5.578 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002712/0.4252, allocations: 1.599 MB / 460.1 MB, free: 3.938 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00226/0.4274, allocations: 472.4 kB / 460.5 MB, free: 3.484 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008101/0.4356, allocations: 5.103 MB / 465.6 MB, free: 14.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001957/0.4375, allocations: 1.947 MB / 467.6 MB, free: 12.37 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001202/0.4388, allocations: 395.6 kB / 468 MB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003813/0.4391, allocations: 131.4 kB / 468.1 MB, free: 11.85 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4392, allocations: 3.469 kB / 468.1 MB, free: 11.85 MB / 382.1 MB Notification: Performance of Templates: time 0.0504/0.4896, allocations: 30.1 MB / 498.2 MB, free: 14.05 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches