Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=300000,variableFilter="time|imc.airGap.V_mrr.im|imc.airGap.V_mrr.re|imc.airGap.V_msr.im|imc.airGap.V_msr.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.port_p.V_m.im|imc.stator.port_p.V_m.re|imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=300000,variableFilter="time|imc.airGap.V_mrr.im|imc.airGap.V_mrr.re|imc.airGap.V_msr.im|imc.airGap.V_msr.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.port_p.V_m.im|imc.stator.port_p.V_m.re|imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001083/0.001083, allocations: 114.1 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00115/0.001151, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 59.44 kB / 306.5 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09368/0.09492, allocations: 50.54 MB / 357 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.1747/0.2697, allocations: 32.9 MB / 389.9 MB, free: 3.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02049/0.2902, allocations: 9.108 MB / 399 MB, free: 12.74 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008416/0.2987, allocations: 228.7 kB / 399.2 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01954/0.3183, allocations: 7.502 MB / 406.7 MB, free: 7.812 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01671/0.335, allocations: 3.309 MB / 410.1 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008204/0.3432, allocations: 1.985 MB / 412 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01858/0.3618, allocations: 13.34 MB / 425.4 MB, free: 8.402 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04115/0.403, allocations: 25.15 MB / 450.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01292/0.416, allocations: 6.486 MB / 457 MB, free: 8.598 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0111/0.4271, allocations: 7.273 MB / 464.3 MB, free: 1.301 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004955/0.4321, allocations: 1.879 MB / 466.2 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007172/0.4393, allocations: 2.269 MB / 468.4 MB, free: 13.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005609/0.445, allocations: 3.749 MB / 472.2 MB, free: 9.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01345/0.4584, allocations: 7.113 MB / 479.3 MB, free: 2.254 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03422/0.4927, allocations: 24.9 MB / 0.4924 GB, free: 9.285 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.4927, allocations: 8 kB / 0.4924 GB, free: 9.277 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4928, allocations: 0 / 0.4924 GB, free: 9.277 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0008203/0.4936, allocations: 0 / 0.4924 GB, free: 9.277 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.05019/0.5438, allocations: 14.66 MB / 0.5067 GB, free: 10.5 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.472e-05/0.5439, allocations: 8.031 kB / 0.5067 GB, free: 10.49 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04008/0.584, allocations: 6.788 MB / 0.5133 GB, free: 3.684 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01874/0.6027, allocations: 7.866 MB / 0.521 GB, free: 11.73 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007107/0.6035, allocations: 0.7986 MB / 0.5218 GB, free: 10.93 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004105/0.6076, allocations: 1.054 MB / 0.5228 GB, free: 9.883 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3827/0.9903, allocations: 17.21 MB / 0.5396 GB, free: 122.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002801/0.9906, allocations: 17.34 kB / 0.5397 GB, free: 122.4 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00147/0.9921, allocations: 445.4 kB / 0.5401 GB, free: 122.1 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006586/0.9928, allocations: 0.6249 MB / 0.5407 GB, free: 122 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03344/1.026, allocations: 16.3 MB / 0.5566 GB, free: 115.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08696/1.113, allocations: 56.97 MB / 0.6122 GB, free: 67.62 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0202/1.133, allocations: 31.4 MB / 0.6429 GB, free: 32.48 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005613/1.139, allocations: 4.366 MB / 0.6472 GB, free: 28.12 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01564/1.155, allocations: 10.76 MB / 0.6577 GB, free: 17.32 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/1.155, allocations: 73.81 kB / 0.6577 GB, free: 17.24 MB / 446.1 MB Notification: Performance of pre-optimization done (n=398): time 5.17e-06/1.155, allocations: 0 / 0.6577 GB, free: 17.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=423): time 0.04171/1.197, allocations: 21.54 MB / 0.6788 GB, free: 11.34 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.963e-05/1.197, allocations: 120.7 kB / 0.6789 GB, free: 11.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006591/1.203, allocations: 4.71 MB / 0.6835 GB, free: 6.477 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007123/1.204, allocations: 97.7 kB / 0.6836 GB, free: 6.375 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002849/1.207, allocations: 4.665 MB / 0.6881 GB, free: 1.676 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001558/1.208, allocations: 1.454 MB / 0.6896 GB, free: 240 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001749/1.21, allocations: 1.133 MB / 0.6907 GB, free: 15.09 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.448e-05/1.21, allocations: 305.1 kB / 0.691 GB, free: 14.79 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004222/1.215, allocations: 2.905 MB / 0.6938 GB, free: 11.88 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005472/1.22, allocations: 4.953 MB / 0.6986 GB, free: 6.004 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0105/1.231, allocations: 8.343 MB / 0.7068 GB, free: 12.72 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-05/1.231, allocations: 20 kB / 0.7068 GB, free: 12.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01735/1.248, allocations: 9.729 MB / 0.7163 GB, free: 2.918 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.56e-05/1.248, allocations: 36 kB / 0.7163 GB, free: 2.883 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001026/1.248, allocations: 68 kB / 0.7164 GB, free: 2.816 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004599/1.253, allocations: 1.66 MB / 0.718 GB, free: 1.148 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2145/1.467, allocations: 1.318 MB / 0.7193 GB, free: 156.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02293/1.49, allocations: 17.76 MB / 0.7367 GB, free: 147.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005279/1.496, allocations: 332 kB / 0.737 GB, free: 147.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001048/1.497, allocations: 280.9 kB / 0.7372 GB, free: 147.2 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * 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 (671): * Single equations (assignments): 667 * Array equations: 0 * 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 {(1,1,100.0%), (7,28,61.2%), (1,1,100.0%), (14,44,39.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009092/1.506, allocations: 3.897 MB / 0.741 GB, free: 145.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001728/1.508, allocations: 0.494 MB / 0.7415 GB, free: 145.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01307/1.521, allocations: 7.801 MB / 0.7491 GB, free: 142 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-05/1.521, allocations: 46.84 kB / 0.7492 GB, free: 142 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.824e-05/1.521, allocations: 15.84 kB / 0.7492 GB, free: 142 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.154e-05/1.521, allocations: 22.95 kB / 0.7492 GB, free: 142 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02641/1.547, allocations: 17.48 MB / 0.7663 GB, free: 134.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.001e-05/1.547, allocations: 7.531 kB / 0.7663 GB, free: 134.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003169/1.55, allocations: 0.7201 MB / 0.767 GB, free: 134.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003875/1.554, allocations: 1.561 MB / 0.7685 GB, free: 134.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004591/1.555, allocations: 102.7 kB / 0.7686 GB, free: 134.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01892/1.574, allocations: 21.24 MB / 0.7894 GB, free: 118 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/1.574, allocations: 8 kB / 0.7894 GB, free: 118 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01561/1.589, allocations: 11.44 MB / 0.8005 GB, free: 107.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003355/1.593, allocations: 1.151 MB / 0.8017 GB, free: 106.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001007/1.594, allocations: 91.94 kB / 0.8018 GB, free: 106.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002512/1.596, allocations: 234.4 kB / 0.802 GB, free: 105.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007544/1.597, allocations: 331.2 kB / 0.8023 GB, free: 105.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002626/1.597, allocations: 128 kB / 0.8024 GB, free: 105.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004105/1.601, allocations: 3.19 MB / 0.8055 GB, free: 102.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.602, allocations: 0 / 0.8055 GB, free: 102.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006212/1.608, allocations: 1.87 MB / 0.8074 GB, free: 100.4 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,loadInertia.phi) * 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 (364): * Single equations (assignments): 357 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (14,44,41.3%), (2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006933/1.608, allocations: 290 kB / 0.8076 GB, free: 100.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02186/1.63, allocations: 11.6 MB / 0.819 GB, free: 88.56 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/1.63, allocations: 4 kB / 0.819 GB, free: 88.55 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006548/1.637, allocations: 4.647 MB / 0.8235 GB, free: 83.82 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005856/1.643, allocations: 1.311 MB / 0.8248 GB, free: 82.54 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02859/1.671, allocations: 23.91 MB / 0.8481 GB, free: 58.55 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006027/1.677, allocations: 6.781 MB / 0.8548 GB, free: 51.72 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005569/1.683, allocations: 1.861 MB / 0.8566 GB, free: 49.86 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001084/1.684, allocations: 379.4 kB / 0.8569 GB, free: 49.48 MB / 494.1 MB Notification: Performance of SimCode: time 1.994e-06/1.684, allocations: 0 / 0.8569 GB, free: 49.48 MB / 494.1 MB Notification: Performance of Templates: time 0.3043/1.988, allocations: 85.33 MB / 0.9403 GB, free: 131.1 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Initialize/IMC_Initialize.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches