Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.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.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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001418/0.001418, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001386/0.001386, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 227.4 MB / 247.5 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 67.52 kB / 307.7 MB, free: 0.5938 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09453/0.0964, allocations: 50.53 MB / 358.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor): time 0.1636/0.2601, allocations: 14.07 MB / 372.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008707/0.2688, allocations: 5.198 MB / 377.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002238/0.2711, allocations: 84.62 kB / 377.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003197/0.2743, allocations: 1.119 MB / 378.7 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004282/0.2786, allocations: 1.386 MB / 380 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002578/0.2812, allocations: 1.006 MB / 381.1 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004962/0.2862, allocations: 4.084 MB / 385.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003838/0.2901, allocations: 3.271 MB / 388.4 MB, free: 5.383 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00319/0.2933, allocations: 1.922 MB / 390.3 MB, free: 4.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00371/0.297, allocations: 2.278 MB / 392.6 MB, free: 3.469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001075/0.2981, allocations: 0.5081 MB / 393.1 MB, free: 3.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002209/0.3003, allocations: 0.7873 MB / 393.9 MB, free: 3.379 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009025/0.3012, allocations: 1.149 MB / 395.1 MB, free: 2.648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002636/0.3039, allocations: 2.153 MB / 397.2 MB, free: 1.211 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006704/0.3106, allocations: 6.795 MB / 404 MB, free: 12.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3106, allocations: 6.688 kB / 404 MB, free: 12.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3106, allocations: 0 / 404 MB, free: 12.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001364/0.3108, allocations: 0 / 404 MB, free: 12.43 MB / 318.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.01215/0.3229, allocations: 4.524 MB / 408.5 MB, free: 8.277 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.323, allocations: 8.031 kB / 408.5 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004575/0.3276, allocations: 0.8179 MB / 409.4 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004845/0.3324, allocations: 2.415 MB / 411.8 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002263/0.3327, allocations: 240.6 kB / 412 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006513/0.3333, allocations: 322.5 kB / 412.3 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008676/0.342, allocations: 4.294 MB / 416.6 MB, free: 132 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.553e-05/0.3421, allocations: 7.906 kB / 416.6 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003253/0.3424, allocations: 127.8 kB / 416.7 MB, free: 0 / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001791/0.3426, allocations: 158.4 kB / 416.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006999/0.3496, allocations: 3.629 MB / 420.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02277/0.3724, allocations: 13.52 MB / 434.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007685/0.3801, allocations: 7.23 MB / 441.3 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003036/0.3832, allocations: 1.606 MB / 442.9 MB, free: 4.664 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00735/0.3906, allocations: 4.322 MB / 447.2 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001416/0.392, allocations: 0.8651 MB / 448.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=132): time 2.725e-06/0.392, allocations: 0 / 448.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.0138/0.4059, allocations: 6.734 MB / 454.8 MB, free: 8.398 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/0.406, allocations: 226.9 kB / 455 MB, free: 8.129 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002977/0.409, allocations: 1.932 MB / 457 MB, free: 6.148 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00014/0.4092, allocations: 53.7 kB / 457 MB, free: 6.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001424/0.4106, allocations: 1.484 MB / 458.5 MB, free: 4.594 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00045/0.411, allocations: 492.9 kB / 459 MB, free: 4.117 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004926/0.4115, allocations: 311.3 kB / 459.3 MB, free: 3.809 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.4117, allocations: 309.1 kB / 459.6 MB, free: 3.504 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001164/0.4128, allocations: 0.6715 MB / 460.3 MB, free: 2.832 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001627/0.4145, allocations: 1.229 MB / 461.5 MB, free: 1.375 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003004/0.4175, allocations: 1.96 MB / 463.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.4175, allocations: 8 kB / 463.5 MB, free: 15.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.0047/0.4222, allocations: 2.519 MB / 466 MB, free: 12.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.4223, allocations: 12.03 kB / 466 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.375e-05/0.4223, allocations: 16 kB / 466 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000929/0.4232, allocations: 347.1 kB / 466.3 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/0.4248, allocations: 371.4 kB / 466.7 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007564/0.4323, allocations: 6.797 MB / 473.5 MB, free: 4.695 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001719/0.4341, allocations: 99.86 kB / 473.6 MB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001559/0.4342, allocations: 75.98 kB / 473.7 MB, free: 4.523 MB / 382.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 (193): * Single equations (assignments): 189 * 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,8,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001964/0.4362, allocations: 1.036 MB / 474.7 MB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004608/0.4367, allocations: 205.4 kB / 474.9 MB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004492/0.4412, allocations: 2.344 MB / 477.3 MB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.031e-05/0.4412, allocations: 19.94 kB / 477.3 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/0.4413, allocations: 11.94 kB / 477.3 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-05/0.4413, allocations: 7.969 kB / 477.3 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008983/0.4503, allocations: 5.234 MB / 482.5 MB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.4503, allocations: 4 kB / 482.5 MB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008002/0.4511, allocations: 175.8 kB / 482.7 MB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001388/0.4525, allocations: 0.5192 MB / 483.2 MB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-05/0.4526, allocations: 35.98 kB / 483.3 MB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01254/0.4652, allocations: 11.58 MB / 494.8 MB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4652, allocations: 0 / 494.8 MB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005737/0.4709, allocations: 3.253 MB / 498.1 MB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0011/0.4721, allocations: 438.4 kB / 498.5 MB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003126/0.4724, allocations: 32 kB / 498.6 MB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008966/0.4733, allocations: 67.95 kB / 498.6 MB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002885/0.4736, allocations: 105.1 kB / 498.7 MB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.591e-05/0.4737, allocations: 35.98 kB / 498.8 MB, free: 10.45 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002072/0.4758, allocations: 1.335 MB / 0.4884 GB, free: 9.09 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4758, allocations: 0 / 0.4884 GB, free: 9.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002183/0.478, allocations: 0.5898 MB / 0.4889 GB, free: 8.5 MB / 414.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 (99): * Single equations (assignments): 92 * 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,8,100.0%), (1,3,100.0%), (1,8,100.0%), (1,13,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.001707/0.4797, allocations: 480.5 kB / 0.4894 GB, free: 8.172 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005637/0.4853, allocations: 2.632 MB / 0.492 GB, free: 5.48 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.4854, allocations: 448 / 0.492 GB, free: 5.48 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002649/0.488, allocations: 1.621 MB / 0.4936 GB, free: 3.797 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002705/0.4907, allocations: 0.5582 MB / 0.4941 GB, free: 3.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01093/0.5017, allocations: 5.85 MB / 0.4998 GB, free: 13.36 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002343/0.5041, allocations: 2.314 MB / 0.5021 GB, free: 11.02 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000629/0.5047, allocations: 151.4 kB / 0.5022 GB, free: 10.87 MB / 430.1 MB Notification: Performance of SimCode: time 1.383e-06/0.5047, allocations: 0 / 0.5022 GB, free: 10.87 MB / 430.1 MB Notification: Performance of Templates: time 0.2664/0.7711, allocations: 115 MB / 0.6145 GB, free: 75.45 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Conveyor/IMC_Conveyor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches