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.001084/0.001084, allocations: 111.2 kB / 17.68 MB, free: 5.332 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.001072/0.001072, allocations: 192 kB / 18.62 MB, free: 4.41 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.524/1.524, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009389/0.0009392, allocations: 50.45 kB / 302.1 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0963/0.09725, allocations: 49.44 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01106/0.1084, allocations: 9.661 MB / 361.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006189/0.1146, allocations: 3.556 MB / 364.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001233/0.1159, allocations: 47.81 kB / 364.8 MB, free: 6.379 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001689/0.1176, allocations: 0.6637 MB / 365.4 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002182/0.1198, allocations: 0.8232 MB / 366.3 MB, free: 4.883 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.1208, allocations: 471.1 kB / 366.7 MB, free: 4.422 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003003/0.1238, allocations: 2.631 MB / 369.3 MB, free: 1.777 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1902/0.3141, allocations: 1.874 MB / 371.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002414/0.3165, allocations: 1.187 MB / 372.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0023/0.3188, allocations: 1.5 MB / 373.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006334/0.3195, allocations: 308.8 kB / 374.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001175/0.3207, allocations: 0.5671 MB / 374.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001035/0.3217, allocations: 1.017 MB / 375.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001585/0.3233, allocations: 1.483 MB / 377.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004562/0.3279, allocations: 4.28 MB / 381.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3279, allocations: 1.875 kB / 381.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3279, allocations: 0 / 381.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.919e-05/0.328, allocations: 0.6875 kB / 381.6 MB, free: 10.61 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.006499/0.3345, allocations: 3.169 MB / 384.7 MB, free: 8.852 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.3346, allocations: 9.031 kB / 384.7 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009627/0.3356, allocations: 325.2 kB / 385 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003044/0.3386, allocations: 1.693 MB / 386.7 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.3388, allocations: 153.2 kB / 386.9 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003447/0.3391, allocations: 205 kB / 387.1 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004267/0.3434, allocations: 2.697 MB / 389.8 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.386e-05/0.3435, allocations: 6.531 kB / 389.8 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001825/0.3437, allocations: 85.86 kB / 389.9 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001111/0.3438, allocations: 92.75 kB / 390 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003384/0.3472, allocations: 2.277 MB / 392.2 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01181/0.359, allocations: 8.146 MB / 400.4 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002765/0.3618, allocations: 1.63 MB / 402 MB, free: 14.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001779/0.3636, allocations: 1.086 MB / 403.1 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002771/0.3639, allocations: 125.6 kB / 403.2 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.589e-05/0.364, allocations: 47.22 kB / 403.3 MB, free: 13.61 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.386e-06/0.364, allocations: 4 kB / 403.3 MB, free: 13.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.0139/0.3779, allocations: 6.448 MB / 409.7 MB, free: 7.055 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.328e-05/0.378, allocations: 64.72 kB / 409.8 MB, free: 6.977 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003674/0.3817, allocations: 2.149 MB / 411.9 MB, free: 4.781 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004097/0.3821, allocations: 49.7 kB / 412 MB, free: 4.727 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009614/0.3831, allocations: 1.104 MB / 413.1 MB, free: 3.613 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005361/0.3836, allocations: 462.8 kB / 413.5 MB, free: 3.164 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004368/0.3841, allocations: 241.2 kB / 413.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3842, allocations: 361.9 kB / 414.1 MB, free: 2.562 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.3856, allocations: 0.7574 MB / 414.9 MB, free: 1.805 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/0.3871, allocations: 1.013 MB / 415.9 MB, free: 0.707 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002784/0.3898, allocations: 1.856 MB / 417.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.3899, allocations: 5.031 kB / 417.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005152/0.395, allocations: 2.768 MB / 420.5 MB, free: 12.06 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.3951, allocations: 8 kB / 420.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.3951, allocations: 4 kB / 420.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001947/0.397, allocations: 0.7904 MB / 421.3 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/0.3982, allocations: 269.9 kB / 421.6 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01231/0.4105, allocations: 9.59 MB / 431.2 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001748/0.4123, allocations: 99.95 kB / 431.3 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001546/0.4125, allocations: 47.98 kB / 431.3 MB, free: 1.043 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.00169/0.4142, allocations: 0.7397 MB / 432.1 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004755/0.4147, allocations: 201.6 kB / 432.3 MB, free: 112 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004649/0.4193, allocations: 2.495 MB / 434.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.177e-05/0.4194, allocations: 20 kB / 434.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.4194, allocations: 4 kB / 434.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.4194, allocations: 7.969 kB / 434.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00904/0.4285, allocations: 4.945 MB / 439.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.4285, allocations: 4 kB / 439.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009946/0.4295, allocations: 211.7 kB / 440 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001666/0.4312, allocations: 0.6514 MB / 440.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001078/0.4313, allocations: 39.97 kB / 440.6 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009068/0.4404, allocations: 8.715 MB / 449.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.4404, allocations: 4.031 kB / 449.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006353/0.4468, allocations: 3.54 MB / 452.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001304/0.4481, allocations: 448.1 kB / 453.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003017/0.4484, allocations: 24 kB / 453.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000989/0.4494, allocations: 83.89 kB / 453.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003/0.4497, allocations: 111.5 kB / 453.6 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.4499, allocations: 35.98 kB / 453.6 MB, free: 10.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002258/0.4521, allocations: 1.515 MB / 455.1 MB, free: 8.805 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4521, allocations: 0 / 455.1 MB, free: 8.805 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002129/0.4543, allocations: 0.5234 MB / 455.6 MB, free: 8.281 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.00123/0.4555, allocations: 472.1 kB / 456.1 MB, free: 7.969 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004168/0.4597, allocations: 2.379 MB / 458.5 MB, free: 5.594 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.4597, allocations: 0 / 458.5 MB, free: 5.594 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002483/0.4622, allocations: 1.599 MB / 460.1 MB, free: 3.949 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002266/0.4645, allocations: 463.5 kB / 460.5 MB, free: 3.504 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007949/0.4724, allocations: 5.1 MB / 465.6 MB, free: 14.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00165/0.4741, allocations: 1.955 MB / 467.6 MB, free: 12.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001299/0.4754, allocations: 383.7 kB / 468 MB, free: 12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003917/0.4759, allocations: 131.4 kB / 468.1 MB, free: 11.87 MB / 382.1 MB Notification: Performance of SimCode: time 6.82e-07/0.4759, allocations: 0 / 468.1 MB, free: 11.87 MB / 382.1 MB Notification: Performance of Templates: time 0.05203/0.5279, allocations: 30.12 MB / 498.2 MB, free: 14.07 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 cvode -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