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.001467/0.001467, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001942/0.001942, allocations: 209.7 kB / 18.14 MB, free: 5.344 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.3 MB, free: 9.129 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 66.22 kB / 306.3 MB, free: 0.7812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0829/0.08403, allocations: 50.54 MB / 356.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.1755/0.2596, allocations: 32.91 MB / 389.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01732/0.277, allocations: 9.154 MB / 398.9 MB, free: 12.49 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005328/0.2823, allocations: 233.9 kB / 399.1 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01602/0.2983, allocations: 7.472 MB / 406.6 MB, free: 7.578 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01149/0.3099, allocations: 3.368 MB / 410 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006033/0.3159, allocations: 1.987 MB / 411.9 MB, free: 3.352 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01744/0.3333, allocations: 13.55 MB / 425.5 MB, free: 8.027 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02623/0.3596, allocations: 18.28 MB / 443.8 MB, free: 5.598 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008295/0.368, allocations: 5.482 MB / 449.3 MB, free: 100 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01007/0.3781, allocations: 6.796 MB / 456.1 MB, free: 9.277 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002628/0.3807, allocations: 1.148 MB / 457.2 MB, free: 8.129 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004247/0.385, allocations: 1.535 MB / 458.7 MB, free: 6.594 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002536/0.3875, allocations: 2.991 MB / 461.7 MB, free: 3.594 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008729/0.3963, allocations: 6.344 MB / 468.1 MB, free: 13.22 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02171/0.418, allocations: 24.42 MB / 492.5 MB, free: 4.734 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.418, allocations: 0 / 492.5 MB, free: 4.734 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.418, allocations: 0 / 492.5 MB, free: 4.734 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005329/0.4186, allocations: 0 / 492.5 MB, free: 4.734 MB / 398.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.03852/0.4571, allocations: 14.67 MB / 0.4953 GB, free: 5.953 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.4572, allocations: 12.03 kB / 0.4953 GB, free: 5.941 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03836/0.4955, allocations: 6.784 MB / 0.5019 GB, free: 15.14 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01515/0.5107, allocations: 7.866 MB / 0.5096 GB, free: 7.191 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007243/0.5114, allocations: 0.7947 MB / 0.5104 GB, free: 6.395 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003503/0.515, allocations: 1.054 MB / 0.5114 GB, free: 5.34 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03364/0.5486, allocations: 17.22 MB / 0.5282 GB, free: 4.043 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002251/0.5489, allocations: 15.84 kB / 0.5282 GB, free: 4.027 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001332/0.5502, allocations: 448 kB / 0.5287 GB, free: 3.59 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005552/0.5508, allocations: 0.6236 MB / 0.5293 GB, free: 2.961 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.355/0.9058, allocations: 16.29 MB / 0.5452 GB, free: 122.2 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08201/0.9878, allocations: 56.99 MB / 0.6008 GB, free: 78.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01883/1.007, allocations: 31.39 MB / 0.6315 GB, free: 43.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006275/1.013, allocations: 4.369 MB / 0.6357 GB, free: 39.43 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01564/1.029, allocations: 10.75 MB / 0.6462 GB, free: 28.64 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/1.029, allocations: 77.75 kB / 0.6463 GB, free: 28.55 MB / 446.1 MB Notification: Performance of pre-optimization done (n=398): time 4.969e-06/1.029, allocations: 0 / 0.6463 GB, free: 28.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=423): time 0.03837/1.067, allocations: 21.54 MB / 0.6674 GB, free: 6.656 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/1.067, allocations: 120.7 kB / 0.6675 GB, free: 6.516 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005949/1.073, allocations: 4.71 MB / 0.6721 GB, free: 1.797 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002847/1.073, allocations: 101.6 kB / 0.6722 GB, free: 1.691 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002661/1.076, allocations: 4.665 MB / 0.6767 GB, free: 12.99 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001272/1.077, allocations: 1.454 MB / 0.6781 GB, free: 11.55 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001982/1.079, allocations: 1.132 MB / 0.6792 GB, free: 10.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.546e-05/1.08, allocations: 301.1 kB / 0.6795 GB, free: 10.11 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004624/1.084, allocations: 2.905 MB / 0.6824 GB, free: 7.195 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006189/1.09, allocations: 4.95 MB / 0.6872 GB, free: 1.324 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01154/1.102, allocations: 8.349 MB / 0.6954 GB, free: 8.039 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.049e-05/1.102, allocations: 23.94 kB / 0.6954 GB, free: 8.016 MB / 478.1 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01822/1.12, allocations: 9.727 MB / 0.7049 GB, free: 14.23 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.9e-05/1.12, allocations: 33.88 kB / 0.7049 GB, free: 14.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001361/1.12, allocations: 64 kB / 0.705 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00466/1.125, allocations: 1.651 MB / 0.7066 GB, free: 12.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005083/1.13, allocations: 1.322 MB / 0.7079 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2349/1.365, allocations: 16.46 MB / 0.724 GB, free: 153.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005335/1.371, allocations: 330.8 kB / 0.7243 GB, free: 153.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001436/1.372, allocations: 281.8 kB / 0.7245 GB, free: 153.9 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.008168/1.38, allocations: 3.898 MB / 0.7283 GB, free: 152.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001791/1.382, allocations: 0.4943 MB / 0.7288 GB, free: 152.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0172/1.399, allocations: 7.791 MB / 0.7364 GB, free: 149.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.146e-05/1.399, allocations: 43.5 kB / 0.7365 GB, free: 149.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.954e-05/1.399, allocations: 15.28 kB / 0.7365 GB, free: 149.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-05/1.399, allocations: 23.27 kB / 0.7365 GB, free: 149.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03387/1.433, allocations: 17.48 MB / 0.7536 GB, free: 142 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.41e-05/1.433, allocations: 7.406 kB / 0.7536 GB, free: 142 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002961/1.436, allocations: 0.726 MB / 0.7543 GB, free: 142 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003976/1.44, allocations: 1.543 MB / 0.7558 GB, free: 141.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004729/1.441, allocations: 111.9 kB / 0.7559 GB, free: 141.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0188/1.46, allocations: 19.51 MB / 0.775 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/1.46, allocations: 7.875 kB / 0.775 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01695/1.477, allocations: 11.45 MB / 0.7861 GB, free: 119.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002588/1.479, allocations: 1.151 MB / 0.7873 GB, free: 118.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001233/1.481, allocations: 94.19 kB / 0.7874 GB, free: 118.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002885/1.483, allocations: 228.9 kB / 0.7876 GB, free: 118.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008905/1.484, allocations: 327.7 kB / 0.7879 GB, free: 118.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003329/1.485, allocations: 133.8 kB / 0.788 GB, free: 118 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0051/1.49, allocations: 3.191 MB / 0.7911 GB, free: 115.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.49, allocations: 0 / 0.7911 GB, free: 115.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006036/1.496, allocations: 1.871 MB / 0.793 GB, free: 113.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.0006611/1.497, allocations: 287.4 kB / 0.7932 GB, free: 113.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01106/1.508, allocations: 8.111 MB / 0.8012 GB, free: 105.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/1.508, allocations: 4.938 kB / 0.8012 GB, free: 105.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005979/1.514, allocations: 4.642 MB / 0.8057 GB, free: 100.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005472/1.519, allocations: 1.245 MB / 0.8069 GB, free: 99.39 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02991/1.549, allocations: 23.9 MB / 0.8303 GB, free: 75.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007814/1.557, allocations: 6.774 MB / 0.8369 GB, free: 68.58 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00565/1.563, allocations: 1.869 MB / 0.8387 GB, free: 66.71 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00131/1.564, allocations: 375.4 kB / 0.8391 GB, free: 66.34 MB / 494.1 MB Notification: Performance of SimCode: time 6.32e-07/1.564, allocations: 0 / 0.8391 GB, free: 66.34 MB / 494.1 MB Notification: Performance of Templates: time 0.3748/1.939, allocations: 82.42 MB / 0.9195 GB, free: 124.6 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