Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|// aimsE.i_0_r|// aimsE.i_0_s|aimsE.idq_rr.1.|aimsE.idq_rr.2.|aimsE.idq_sr.1.|aimsE.idq_sr.2.|aimsE.is.1.|aimsE.is.2.|aimsE.ir.1.|aimsE.ir.2.|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.rotor.zeroInductor.i0|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.stator.zeroInductor.i0|aimsM.is.1.|aimsM.is.2.|aimsM.ir.1.|aimsM.ir.2.|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|// aimsE.i_0_r|// aimsE.i_0_s|aimsE.idq_rr.1.|aimsE.idq_rr.2.|aimsE.idq_sr.1.|aimsE.idq_sr.2.|aimsE.is.1.|aimsE.is.2.|aimsE.ir.1.|aimsE.ir.2.|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.rotor.zeroInductor.i0|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.stator.zeroInductor.i0|aimsM.is.1.|aimsM.is.2.|aimsM.ir.1.|aimsM.ir.2.|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009772/0.0009773, allocations: 201.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 226.5 MB / 245.4 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008086/0.0008086, allocations: 106.7 kB / 297.5 MB, free: 6.703 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002987/0.0002987, allocations: 8 kB / 358.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2344/0.2348, allocations: 51.29 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3156/0.5504, allocations: 131.7 MB / 0.5284 GB, free: 49.61 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002253/0.5506, allocations: 100.6 kB / 0.5285 GB, free: 49.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3662/0.9169, allocations: 154.1 MB / 0.679 GB, free: 1.48 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.9169, allocations: 0 / 0.679 GB, free: 1.48 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0007968/0.9178, allocations: 191.7 kB / 0.6792 GB, free: 1.293 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.2369/1.155, allocations: 7.26 MB / 0.6862 GB, free: 49.24 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/1.155, allocations: 10.5 kB / 0.6863 GB, free: 49.24 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006876/1.162, allocations: 1.28 MB / 0.6875 GB, free: 48.83 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0132/1.175, allocations: 5.767 MB / 0.6931 GB, free: 47.99 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003884/1.175, allocations: 0.4993 MB / 0.6936 GB, free: 47.97 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001936/1.177, allocations: 0.6644 MB / 0.6943 GB, free: 47.96 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01582/1.193, allocations: 9.382 MB / 0.7034 GB, free: 47.03 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001632/1.193, allocations: 14.25 kB / 0.7034 GB, free: 47.02 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006352/1.194, allocations: 291.7 kB / 0.7037 GB, free: 47.02 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001734/1.194, allocations: 296 kB / 0.704 GB, free: 47.01 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01247/1.207, allocations: 7.669 MB / 0.7115 GB, free: 46.95 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0443/1.251, allocations: 29.68 MB / 0.7405 GB, free: 40.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009061/1.26, allocations: 12.17 MB / 0.7524 GB, free: 31.75 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004722/1.265, allocations: 3.388 MB / 0.7557 GB, free: 30.57 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0135/1.278, allocations: 7.143 MB / 0.7627 GB, free: 26.97 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.623e-05/1.278, allocations: 70.92 kB / 0.7627 GB, free: 26.9 MB / 458.7 MB Notification: Performance of pre-optimization done (n=308): time 6.102e-06/1.278, allocations: 3.594 kB / 0.7627 GB, free: 26.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=327): time 0.02959/1.308, allocations: 16.16 MB / 0.7785 GB, free: 19.12 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/1.308, allocations: 86.02 kB / 0.7786 GB, free: 19.05 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006888/1.315, allocations: 3.97 MB / 0.7825 GB, free: 17.59 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003619/1.315, allocations: 81.67 kB / 0.7825 GB, free: 17.52 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001773/1.317, allocations: 3.093 MB / 0.7856 GB, free: 15.17 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008287/1.318, allocations: 1.1 MB / 0.7866 GB, free: 14.32 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002924/1.318, allocations: 74.72 kB / 0.7867 GB, free: 14.26 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002046/1.318, allocations: 457.5 kB / 0.7871 GB, free: 13.89 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002733/1.321, allocations: 1.881 MB / 0.789 GB, free: 13.21 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003119/1.324, allocations: 2.8 MB / 0.7917 GB, free: 11.45 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005987/1.33, allocations: 4.872 MB / 0.7965 GB, free: 8.766 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.456e-05/1.33, allocations: 9.344 kB / 0.7965 GB, free: 8.766 MB / 458.7 MB Notification: Performance of matching and sorting (n=481) (initialization): time 0.009555/1.34, allocations: 6.394 MB / 0.8027 GB, free: 6.223 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.559e-05/1.34, allocations: 21.23 kB / 0.8028 GB, free: 6.223 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.214e-05/1.34, allocations: 30.22 kB / 0.8028 GB, free: 6.223 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002454/1.342, allocations: 1.255 MB / 0.804 GB, free: 5.789 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002819/1.345, allocations: 0.8133 MB / 0.8048 GB, free: 5.762 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01671/1.362, allocations: 20.74 MB / 0.825 GB, free: 4.043 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004018/1.366, allocations: 203.6 kB / 0.8252 GB, free: 3.883 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007505/1.367, allocations: 151.6 kB / 0.8254 GB, free: 3.738 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (418): * Single equations (assignments): 404 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(2,100.0%) 14,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005088/1.372, allocations: 2.183 MB / 0.8275 GB, free: 1.891 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001315/1.373, allocations: 450.6 kB / 0.8279 GB, free: 1.445 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01379/1.387, allocations: 6.357 MB / 0.8342 GB, free: 12.72 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.57e-05/1.387, allocations: 32 kB / 0.8342 GB, free: 12.69 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.306e-05/1.387, allocations: 16 kB / 0.8342 GB, free: 12.67 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-05/1.387, allocations: 20.86 kB / 0.8342 GB, free: 12.67 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02689/1.414, allocations: 12.45 MB / 0.8464 GB, free: 2.371 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-05/1.414, allocations: 4.375 kB / 0.8464 GB, free: 2.367 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002219/1.416, allocations: 470.8 kB / 0.8468 GB, free: 1.984 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003907/1.42, allocations: 1.624 MB / 0.8484 GB, free: 0.6758 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005003/1.421, allocations: 71.45 kB / 0.8485 GB, free: 0.6133 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4429/1.864, allocations: 30.21 MB / 0.878 GB, free: 78.89 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/1.864, allocations: 7.719 kB / 0.878 GB, free: 78.89 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01216/1.876, allocations: 8.768 MB / 0.8866 GB, free: 77.92 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002708/1.879, allocations: 0.9283 MB / 0.8875 GB, free: 77.83 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005274/1.879, allocations: 69.56 kB / 0.8875 GB, free: 77.83 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001752/1.881, allocations: 204.3 kB / 0.8877 GB, free: 77.83 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006415/1.882, allocations: 282.9 kB / 0.888 GB, free: 77.82 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001861/1.882, allocations: 91.88 kB / 0.8881 GB, free: 77.82 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.003547/1.885, allocations: 2.696 MB / 0.8907 GB, free: 77.64 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.5e-07/1.885, allocations: 0 / 0.8907 GB, free: 77.64 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.004328/1.89, allocations: 1.391 MB / 0.8921 GB, free: 77.64 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (234): * Single equations (assignments): 217 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008627/1.891, allocations: 0.5433 MB / 0.8926 GB, free: 77.52 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.007405/1.898, allocations: 6.358 MB / 0.8988 GB, free: 75.9 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 5.902e-06/1.898, allocations: 5.984 kB / 0.8988 GB, free: 75.9 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.005268/1.903, allocations: 4.823 MB / 0.9035 GB, free: 73.95 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007572/1.911, allocations: 1.294 MB / 0.9048 GB, free: 73.93 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02141/1.932, allocations: 15.82 MB / 0.9202 GB, free: 67.55 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005155/1.938, allocations: 4.49 MB / 0.9246 GB, free: 66.64 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.004333/1.942, allocations: 1.053 MB / 0.9257 GB, free: 66.53 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007795/1.943, allocations: 275.1 kB / 0.9259 GB, free: 66.53 MB / 0.4949 GB Notification: Performance of SimCode: time 1.212e-06/1.943, allocations: 0 / 0.9259 GB, free: 66.53 MB / 0.4949 GB Notification: Performance of Templates: time 0.1172/2.06, allocations: 74.25 MB / 0.9984 GB, free: 49.86 MB / 0.4949 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMS_Start/IMS_Start.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches