Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001653/0.001653, allocations: 84.61 kB / 20.95 MB, free: 332 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001872/0.001872, allocations: 149.3 kB / 24.25 MB, free: 3.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.516/1.516, allocations: 173.3 MB / 200.8 MB, free: 12.73 MB / 190.1 MB " [Timeout remaining time 178] 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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|PI.x|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.core.Phi.im|aimc.stator.core.Phi.re|aimc.stator.port_p.V_m.im|aimc.stator.port_p.V_m.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|PI.x|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.core.Phi.im|aimc.stator.core.Phi.re|aimc.stator.port_p.V_m.im|aimc.stator.port_p.V_m.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 267.3 MB, free: 10.16 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.681e-05/2.812e-05, allocations: 6.25 kB / 267.4 MB, free: 10.15 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01609/0.01611, allocations: 11.97 MB / 279.3 MB, free: 14.11 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01076/0.02687, allocations: 4.727 MB / 284 MB, free: 9.375 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00254/0.02941, allocations: 95.44 kB / 284.1 MB, free: 9.281 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003559/0.03297, allocations: 1.036 MB / 285.2 MB, free: 8.238 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005679/0.03865, allocations: 1.491 MB / 286.7 MB, free: 6.738 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003054/0.0417, allocations: 0.9467 MB / 287.6 MB, free: 5.789 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006607/0.04831, allocations: 4.492 MB / 292.1 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003119/0.05143, allocations: 1.798 MB / 293.9 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005082/0.05651, allocations: 2.986 MB / 296.9 MB, free: 12.41 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003684/0.06019, allocations: 1.941 MB / 298.8 MB, free: 10.47 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009513/0.06115, allocations: 0.5352 MB / 299.4 MB, free: 9.934 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002046/0.06319, allocations: 0.8898 MB / 300.3 MB, free: 9.043 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001421/0.06461, allocations: 1.402 MB / 301.7 MB, free: 7.637 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002629/0.06724, allocations: 1.571 MB / 303.2 MB, free: 6.062 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1305/0.1978, allocations: 7.407 MB / 310.6 MB, free: 25.15 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.1978, allocations: 0.6875 kB / 310.6 MB, free: 25.15 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1978, allocations: 0.5625 kB / 310.6 MB, free: 25.15 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001986/0.198, allocations: 1.969 kB / 310.6 MB, free: 25.15 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01326/0.2112, allocations: 4.973 MB / 315.6 MB, free: 23.37 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.2113, allocations: 12.45 kB / 315.6 MB, free: 23.37 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005502/0.2168, allocations: 1.321 MB / 316.9 MB, free: 23.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00578/0.2226, allocations: 2.82 MB / 319.8 MB, free: 22.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001983/0.2228, allocations: 250.3 kB / 320 MB, free: 22.47 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007328/0.2235, allocations: 341.9 kB / 320.3 MB, free: 22.46 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007879/0.2314, allocations: 4.693 MB / 325 MB, free: 21.71 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.34e-05/0.2315, allocations: 15.45 kB / 325.1 MB, free: 21.7 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003334/0.2318, allocations: 133.7 kB / 325.2 MB, free: 21.6 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001397/0.2319, allocations: 160.3 kB / 325.3 MB, free: 21.58 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005971/0.2379, allocations: 3.898 MB / 329.2 MB, free: 20.07 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02021/0.2581, allocations: 12.34 MB / 341.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005211/0.2633, allocations: 2.961 MB / 344.5 MB, free: 8.648 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002447/0.2658, allocations: 1.582 MB / 346.1 MB, free: 7.074 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006838/0.2726, allocations: 3.604 MB / 349.7 MB, free: 3.512 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.2726, allocations: 51.88 kB / 349.8 MB, free: 3.453 MB / 286.1 MB Notification: Performance of pre-optimization done (n=165): time 3.817e-06/0.2726, allocations: 0 / 349.8 MB, free: 3.453 MB / 286.1 MB Notification: Performance of matching and sorting (n=185): time 0.01648/0.2891, allocations: 7.464 MB / 357.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/0.2892, allocations: 69.41 kB / 357.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003751/0.2929, allocations: 2.43 MB / 359.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002156/0.2931, allocations: 57.7 kB / 359.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001497/0.2946, allocations: 1.66 MB / 361.5 MB, free: 7.723 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000684/0.2953, allocations: 0.6441 MB / 362.1 MB, free: 7.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006282/0.296, allocations: 339.1 kB / 362.4 MB, free: 6.758 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.2961, allocations: 301.1 kB / 362.7 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001813/0.2979, allocations: 0.9058 MB / 363.6 MB, free: 5.555 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002183/0.3001, allocations: 1.335 MB / 365 MB, free: 4.066 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004136/0.3042, allocations: 2.353 MB / 367.3 MB, free: 1.609 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.3042, allocations: 4 kB / 367.3 MB, free: 1.605 MB / 302.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006455/0.3107, allocations: 3.126 MB / 370.5 MB, free: 14.55 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.3107, allocations: 11.38 kB / 370.5 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.988e-05/0.3107, allocations: 15.94 kB / 370.5 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001665/0.3124, allocations: 0.5509 MB / 371 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001937/0.3143, allocations: 428.4 kB / 371.4 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01092/0.3253, allocations: 7.258 MB / 378.7 MB, free: 6.148 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002029/0.3273, allocations: 87.94 kB / 378.8 MB, free: 6.062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002193/0.3275, allocations: 82.06 kB / 378.9 MB, free: 5.984 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (198): * Single equations (assignments): 194 * 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%), (7,34,75.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002208/0.3297, allocations: 1.161 MB / 380 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006758/0.3304, allocations: 310.5 kB / 380.3 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005899/0.3363, allocations: 2.85 MB / 383.2 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.181e-05/0.3363, allocations: 20 kB / 383.2 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.557e-05/0.3363, allocations: 8 kB / 383.2 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.055e-05/0.3364, allocations: 7.969 kB / 383.2 MB, free: 1.656 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01118/0.3476, allocations: 5.466 MB / 388.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.3476, allocations: 0 / 388.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0015/0.3491, allocations: 273.9 kB / 389 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001947/0.351, allocations: 0.6245 MB / 389.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002003/0.3512, allocations: 50.62 kB / 389.6 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01411/0.3653, allocations: 10.85 MB / 400.5 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.3653, allocations: 4.031 kB / 400.5 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008118/0.3734, allocations: 4.177 MB / 404.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001394/0.3748, allocations: 470.2 kB / 405.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003183/0.3752, allocations: 47.98 kB / 405.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001154/0.3763, allocations: 79.88 kB / 405.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003886/0.3767, allocations: 145.7 kB / 405.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/0.3768, allocations: 56.05 kB / 405.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002536/0.3794, allocations: 1.682 MB / 407.1 MB, free: 9.406 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3794, allocations: 0 / 407.1 MB, free: 9.406 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002432/0.3818, allocations: 0.6913 MB / 407.8 MB, free: 8.715 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,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 (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001695/0.3835, allocations: 480.1 kB / 408.3 MB, free: 8.426 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005488/0.389, allocations: 2.723 MB / 411 MB, free: 5.719 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.389, allocations: 0 / 411 MB, free: 5.719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003359/0.3923, allocations: 1.853 MB / 412.9 MB, free: 3.848 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00257/0.3949, allocations: 0.5026 MB / 413.4 MB, free: 3.352 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01263/0.4076, allocations: 7.056 MB / 420.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002613/0.4102, allocations: 2.071 MB / 422.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001662/0.4118, allocations: 495 kB / 423 MB, free: 9.652 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000526/0.4124, allocations: 156.5 kB / 423.1 MB, free: 9.5 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4124, allocations: 0 / 423.1 MB, free: 9.5 MB / 366.1 MB Notification: Performance of Templates: time 0.1707/0.583, allocations: 35.06 MB / 458.2 MB, free: 120.4 MB / 382.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 7.399670869112015]