Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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.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_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 114.5 kB / 17.69 MB, free: 5.312 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.001009/0.001009, allocations: 191 kB / 18.63 MB, free: 4.379 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.187/1.187, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 46.98 kB / 302.1 MB, free: 5.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09852/0.09964, allocations: 49.45 MB / 351.5 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.2113/0.311, allocations: 32.82 MB / 384.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02/0.3311, allocations: 8.991 MB / 393.4 MB, free: 4.184 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009117/0.3402, allocations: 240.7 kB / 393.6 MB, free: 4.133 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01805/0.3583, allocations: 7.943 MB / 401.5 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01363/0.3719, allocations: 3.649 MB / 405.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007251/0.3792, allocations: 2.102 MB / 407.3 MB, free: 10.53 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0168/0.396, allocations: 12.99 MB / 420.3 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03003/0.4261, allocations: 22.48 MB / 442.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01173/0.4378, allocations: 6.549 MB / 449.3 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01104/0.4489, allocations: 7.206 MB / 456.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00455/0.4535, allocations: 1.883 MB / 458.4 MB, free: 10.47 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006471/0.46, allocations: 2.246 MB / 460.6 MB, free: 8.227 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005745/0.4657, allocations: 3.745 MB / 464.4 MB, free: 4.473 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01219/0.478, allocations: 7.098 MB / 471.5 MB, free: 13.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0269/0.5049, allocations: 24.99 MB / 496.5 MB, free: 4.285 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.5049, allocations: 0 / 496.5 MB, free: 4.285 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.5049, allocations: 0 / 496.5 MB, free: 4.285 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006909/0.5056, allocations: 0 / 496.5 MB, free: 4.285 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.04159/0.5472, allocations: 14.57 MB / 0.4991 GB, free: 5.602 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.5473, allocations: 8.031 kB / 0.4991 GB, free: 5.594 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03705/0.5843, allocations: 6.796 MB / 0.5057 GB, free: 14.78 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01743/0.6018, allocations: 8.083 MB / 0.5136 GB, free: 6.613 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007267/0.6026, allocations: 0.7907 MB / 0.5144 GB, free: 5.82 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004323/0.6069, allocations: 1.047 MB / 0.5154 GB, free: 4.773 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3986/1.005, allocations: 17.22 MB / 0.5322 GB, free: 111.4 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004093/1.006, allocations: 14.06 kB / 0.5322 GB, free: 111.4 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003022/1.009, allocations: 440.8 kB / 0.5326 GB, free: 111 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008663/1.01, allocations: 0.6328 MB / 0.5333 GB, free: 111 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03305/1.043, allocations: 16.3 MB / 0.5492 GB, free: 104.5 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08271/1.126, allocations: 55.14 MB / 0.603 GB, free: 53.86 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01995/1.146, allocations: 31.09 MB / 0.6334 GB, free: 19.11 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005867/1.152, allocations: 4.33 MB / 0.6376 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01583/1.167, allocations: 10.42 MB / 0.6478 GB, free: 4.402 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.028e-05/1.167, allocations: 73.81 kB / 0.6479 GB, free: 4.32 MB / 430.1 MB Notification: Performance of pre-optimization done (n=398): time 5.24e-06/1.167, allocations: 0 / 0.6479 GB, free: 4.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=423): time 0.03999/1.207, allocations: 21.56 MB / 0.6689 GB, free: 14.38 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.889e-05/1.208, allocations: 120.7 kB / 0.669 GB, free: 14.25 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006594/1.214, allocations: 4.677 MB / 0.6736 GB, free: 9.559 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006169/1.215, allocations: 101.7 kB / 0.6737 GB, free: 9.453 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00279/1.218, allocations: 4.657 MB / 0.6783 GB, free: 4.766 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001414/1.219, allocations: 1.446 MB / 0.6797 GB, free: 3.332 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001649/1.221, allocations: 1.132 MB / 0.6808 GB, free: 2.188 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.753e-05/1.221, allocations: 301.1 kB / 0.6811 GB, free: 1.891 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003996/1.225, allocations: 2.908 MB / 0.6839 GB, free: 14.98 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00529/1.23, allocations: 4.953 MB / 0.6887 GB, free: 9.094 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.188/1.418, allocations: 8.333 MB / 0.6969 GB, free: 143.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.314e-05/1.418, allocations: 19.22 kB / 0.6969 GB, free: 143.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01787/1.436, allocations: 9.734 MB / 0.7064 GB, free: 142 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.996e-05/1.436, allocations: 34.75 kB / 0.7064 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000143/1.436, allocations: 65.03 kB / 0.7065 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004561/1.441, allocations: 1.642 MB / 0.7081 GB, free: 141.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00538/1.446, allocations: 1.32 MB / 0.7094 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01962/1.466, allocations: 17.76 MB / 0.7267 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00482/1.471, allocations: 336.3 kB / 0.727 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006538/1.471, allocations: 281.6 kB / 0.7273 GB, free: 130 MB / 478.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.005436/1.477, allocations: 3.882 MB / 0.7311 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001052/1.478, allocations: 0.4922 MB / 0.7316 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01132/1.489, allocations: 7.783 MB / 0.7392 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.543e-05/1.489, allocations: 46.16 kB / 0.7392 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.619e-05/1.489, allocations: 15.62 kB / 0.7392 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.183e-05/1.489, allocations: 22.5 kB / 0.7393 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02403/1.513, allocations: 17.45 MB / 0.7563 GB, free: 117.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.665e-05/1.514, allocations: 7.875 kB / 0.7563 GB, free: 117.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002689/1.516, allocations: 0.731 MB / 0.757 GB, free: 117.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003516/1.52, allocations: 1.546 MB / 0.7585 GB, free: 116.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002878/1.52, allocations: 104.4 kB / 0.7586 GB, free: 116.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01735/1.537, allocations: 21.21 MB / 0.7793 GB, free: 95.12 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/1.537, allocations: 11.94 kB / 0.7794 GB, free: 95.11 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01361/1.551, allocations: 11.45 MB / 0.7905 GB, free: 83.62 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002622/1.554, allocations: 1.147 MB / 0.7917 GB, free: 82.46 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000739/1.554, allocations: 91.92 kB / 0.7917 GB, free: 82.37 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002188/1.557, allocations: 235.8 kB / 0.792 GB, free: 82.14 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000704/1.557, allocations: 319.4 kB / 0.7923 GB, free: 81.82 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002503/1.558, allocations: 136 kB / 0.7924 GB, free: 81.69 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003624/1.561, allocations: 3.166 MB / 0.7955 GB, free: 78.53 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.3e-07/1.561, allocations: 0 / 0.7955 GB, free: 78.53 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006115/1.567, allocations: 1.862 MB / 0.7973 GB, free: 76.67 MB / 478.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.0006112/1.568, allocations: 279.3 kB / 0.7976 GB, free: 76.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01116/1.579, allocations: 8.143 MB / 0.8055 GB, free: 68.21 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/1.579, allocations: 4.5 kB / 0.8055 GB, free: 68.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007015/1.586, allocations: 4.634 MB / 0.8101 GB, free: 63.48 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005576/1.592, allocations: 1.298 MB / 0.8113 GB, free: 62.22 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02747/1.619, allocations: 19.13 MB / 0.83 GB, free: 43.01 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005901/1.625, allocations: 6.76 MB / 0.8366 GB, free: 36.21 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004579/1.63, allocations: 1.865 MB / 0.8384 GB, free: 34.34 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001065/1.631, allocations: 379.4 kB / 0.8388 GB, free: 33.96 MB / 478.1 MB Notification: Performance of SimCode: time 8.82e-07/1.631, allocations: 0 / 0.8388 GB, free: 33.96 MB / 478.1 MB Notification: Performance of Templates: time 0.4811/2.112, allocations: 78.51 MB / 0.9155 GB, free: 119.3 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat","/var/lib/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches