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_Conveyor.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|mass.s|mass.v|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|mass.s|mass.v|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006763/0.0006763, allocations: 96.09 kB / 17.31 MB, free: 5.941 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.0007056/0.0007056, allocations: 175.8 kB / 18.21 MB, free: 5.418 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.141/1.141, allocations: 223.3 MB / 242.3 MB, free: 16 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000214/0.0002141, allocations: 7.938 kB / 302.1 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07136/0.07159, allocations: 50.41 MB / 352.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor): time 0.01112/0.08274, allocations: 12.63 MB / 365.1 MB, free: 6.977 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007077/0.08985, allocations: 4.716 MB / 369.9 MB, free: 2.246 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001686/0.09156, allocations: 71.69 kB / 369.9 MB, free: 2.176 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002418/0.09399, allocations: 0.972 MB / 370.9 MB, free: 1.199 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1381/0.2321, allocations: 1.234 MB / 372.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002606/0.2348, allocations: 0.8979 MB / 373 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005111/0.2399, allocations: 4.309 MB / 377.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003387/0.2433, allocations: 2.696 MB / 380 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002096/0.2454, allocations: 1.339 MB / 381.4 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002728/0.2481, allocations: 1.752 MB / 383.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000475/0.2486, allocations: 206 kB / 383.3 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001282/0.2499, allocations: 459 kB / 383.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006029/0.2505, allocations: 0.7814 MB / 384.6 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001495/0.252, allocations: 1.767 MB / 386.3 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003494/0.2555, allocations: 5.577 MB / 391.9 MB, free: 5.492 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2555, allocations: 0 / 391.9 MB, free: 5.492 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2556, allocations: 0 / 391.9 MB, free: 5.492 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.615e-05/0.2556, allocations: 1.531 kB / 391.9 MB, free: 5.492 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: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.007089/0.2627, allocations: 3.792 MB / 395.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.2627, allocations: 9.25 kB / 395.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003494/0.2662, allocations: 0.8255 MB / 396.5 MB, free: 2.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002631/0.2689, allocations: 2.355 MB / 398.9 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/0.269, allocations: 240.8 kB / 399.1 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003617/0.2694, allocations: 321.5 kB / 399.4 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005704/0.2751, allocations: 4.299 MB / 403.7 MB, free: 13.19 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.326e-05/0.2752, allocations: 4 kB / 403.7 MB, free: 13.19 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002705/0.2754, allocations: 127.1 kB / 403.9 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001223/0.2756, allocations: 154.4 kB / 404 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005082/0.2806, allocations: 3.636 MB / 407.6 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01582/0.2965, allocations: 13.47 MB / 421.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00596/0.3025, allocations: 6.951 MB / 428.1 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001909/0.3044, allocations: 1.39 MB / 429.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004971/0.3094, allocations: 3.874 MB / 433.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00112/0.3105, allocations: 0.8548 MB / 434.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=132): time 3.096e-06/0.3105, allocations: 0 / 434.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=140): time 0.01033/0.3208, allocations: 6.564 MB / 440.8 MB, free: 6.754 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.721e-05/0.3209, allocations: 222.9 kB / 441 MB, free: 6.488 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002359/0.3233, allocations: 1.91 MB / 442.9 MB, free: 4.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.889e-05/0.3234, allocations: 49.7 kB / 442.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009519/0.3243, allocations: 1.473 MB / 444.4 MB, free: 3.039 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003261/0.3247, allocations: 489.4 kB / 444.9 MB, free: 2.566 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000171/0.3249, allocations: 137.6 kB / 445 MB, free: 2.426 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.393e-05/0.3249, allocations: 309 kB / 445.3 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000983/0.3259, allocations: 0.6676 MB / 446 MB, free: 1.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001294/0.3272, allocations: 1.213 MB / 447.2 MB, free: 20 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002319/0.3296, allocations: 1.941 MB / 449.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.226e-06/0.3296, allocations: 4 kB / 449.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.0034/0.333, allocations: 2.444 MB / 451.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.333, allocations: 12 kB / 451.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.159e-05/0.333, allocations: 16 kB / 451.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006264/0.3337, allocations: 283.5 kB / 451.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.3349, allocations: 375.4 kB / 452.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004678/0.3396, allocations: 5.873 MB / 458.1 MB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.3406, allocations: 104 kB / 458.2 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.3408, allocations: 71.98 kB / 458.3 MB, free: 4.266 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.dutyCycle.nextTimeEvent,$whenCondition1,dutyCycle.nextTimeEventScaled,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 192 * 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 {(1,4,100.0%), (1,5,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001317/0.3421, allocations: 1.036 MB / 459.3 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002235/0.3423, allocations: 197.6 kB / 459.5 MB, free: 3.023 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003389/0.3457, allocations: 2.269 MB / 461.8 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.3457, allocations: 16 kB / 461.8 MB, free: 0.668 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/0.3458, allocations: 8 kB / 461.8 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.3458, allocations: 7.969 kB / 461.8 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006473/0.3523, allocations: 5.107 MB / 466.9 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.3523, allocations: 0 / 466.9 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007061/0.353, allocations: 191.8 kB / 467.1 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001039/0.354, allocations: 463.4 kB / 467.6 MB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.019e-05/0.3541, allocations: 43.92 kB / 467.6 MB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008395/0.3625, allocations: 10.22 MB / 477.8 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.3626, allocations: 4 kB / 477.8 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004115/0.3667, allocations: 3.139 MB / 481 MB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005606/0.3672, allocations: 442.5 kB / 481.4 MB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002251/0.3675, allocations: 35.94 kB / 481.4 MB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007865/0.3683, allocations: 67.95 kB / 481.5 MB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.3685, allocations: 105.2 kB / 481.6 MB, free: 12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.931e-05/0.3685, allocations: 39.92 kB / 481.7 MB, free: 11.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001608/0.3702, allocations: 1.311 MB / 483 MB, free: 10.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3702, allocations: 0 / 483 MB, free: 10.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00159/0.3718, allocations: 0.5821 MB / 483.5 MB, free: 10.08 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,5,100.0%), (1,13,100.0%), (1,3,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009904/0.3728, allocations: 479.6 kB / 484 MB, free: 9.777 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002833/0.3756, allocations: 2.176 MB / 486.2 MB, free: 7.543 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3756, allocations: 0 / 486.2 MB, free: 7.543 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002042/0.3777, allocations: 1.582 MB / 487.8 MB, free: 5.898 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002244/0.3799, allocations: 0.524 MB / 488.3 MB, free: 5.379 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/0.3911, allocations: 7.33 MB / 495.6 MB, free: 14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00201/0.3932, allocations: 2.298 MB / 497.9 MB, free: 11.67 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005314/0.3937, allocations: 143.4 kB / 498.1 MB, free: 11.53 MB / 414.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3937, allocations: 4 kB / 498.1 MB, free: 11.53 MB / 414.1 MB Notification: Performance of Templates: time 0.2228/0.6165, allocations: 113.5 MB / 0.5973 GB, free: 97.28 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Conveyor/IMC_Conveyor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches