Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_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.is.1.|aimsM.is.2.|aimsM.ir.1.|aimsM.ir.2.|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.stator.zeroInductor.i0|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_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.is.1.|aimsM.is.2.|aimsM.ir.1.|aimsM.ir.2.|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.stator.zeroInductor.i0|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001282/0.001282, allocations: 181 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 205.4 MB / 223.6 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007036/0.0007037, allocations: 83.39 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003115/0.0003117, allocations: 12 kB / 328.2 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.2084, allocations: 47.58 MB / 375.7 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2775/0.486, allocations: 129.3 MB / 0.4932 GB, free: 108.9 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.4863, allocations: 87.36 kB / 0.4932 GB, free: 108.9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3239/0.8102, allocations: 149.9 MB / 0.6396 GB, free: 8.207 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.8103, allocations: 0 / 0.6396 GB, free: 8.207 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006307/0.8109, allocations: 179.8 kB / 0.6398 GB, free: 8.031 MB / 410.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.02126/0.8322, allocations: 7.197 MB / 0.6468 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.8322, allocations: 8.031 kB / 0.6468 GB, free: 0.7344 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.247/1.079, allocations: 1.247 MB / 0.648 GB, free: 35.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01922/1.099, allocations: 5.721 MB / 0.6536 GB, free: 34.51 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008245/1.099, allocations: 0.4978 MB / 0.6541 GB, free: 34.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003585/1.103, allocations: 0.6674 MB / 0.6548 GB, free: 34.49 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03473/1.138, allocations: 9.4 MB / 0.6639 GB, free: 33.55 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003821/1.138, allocations: 20.45 kB / 0.6639 GB, free: 33.54 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002648/1.141, allocations: 285 kB / 0.6642 GB, free: 33.54 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003969/1.141, allocations: 295.7 kB / 0.6645 GB, free: 33.53 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.021/1.162, allocations: 7.677 MB / 0.672 GB, free: 33.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05709/1.219, allocations: 29.5 MB / 0.7008 GB, free: 27.39 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01036/1.23, allocations: 11.88 MB / 0.7124 GB, free: 18.24 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00526/1.235, allocations: 3.373 MB / 0.7157 GB, free: 17.06 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01351/1.249, allocations: 6.875 MB / 0.7224 GB, free: 13.84 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.576e-05/1.249, allocations: 67.7 kB / 0.7225 GB, free: 13.77 MB / 410.7 MB Notification: Performance of pre-optimization done (n=308): time 4.078e-06/1.249, allocations: 0 / 0.7225 GB, free: 13.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=327): time 0.03677/1.286, allocations: 16.14 MB / 0.7382 GB, free: 6.172 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.303e-05/1.286, allocations: 87.95 kB / 0.7383 GB, free: 6.102 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008759/1.294, allocations: 3.95 MB / 0.7422 GB, free: 4.645 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007221/1.295, allocations: 80.77 kB / 0.7423 GB, free: 4.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002176/1.297, allocations: 3.074 MB / 0.7453 GB, free: 2.238 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001358/1.299, allocations: 1.098 MB / 0.7463 GB, free: 1.387 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005902/1.299, allocations: 79.03 kB / 0.7464 GB, free: 1.328 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002839/1.3, allocations: 456.8 kB / 0.7469 GB, free: 0.9609 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003246/1.303, allocations: 1.881 MB / 0.7487 GB, free: 280 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005363/1.308, allocations: 2.901 MB / 0.7515 GB, free: 14.93 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008122/1.317, allocations: 4.868 MB / 0.7563 GB, free: 12.24 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.723e-05/1.317, allocations: 7.625 kB / 0.7563 GB, free: 12.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=481) (initialization): time 0.01369/1.33, allocations: 6.4 MB / 0.7625 GB, free: 9.703 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.671e-05/1.33, allocations: 17.84 kB / 0.7626 GB, free: 9.703 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.485e-05/1.33, allocations: 30.78 kB / 0.7626 GB, free: 9.703 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00305/1.334, allocations: 1.26 MB / 0.7638 GB, free: 9.266 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003385/1.337, allocations: 0.8169 MB / 0.7646 GB, free: 9.242 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01954/1.357, allocations: 20.76 MB / 0.7849 GB, free: 5.535 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004587/1.361, allocations: 202.6 kB / 0.7851 GB, free: 5.379 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001006/1.362, allocations: 151.8 kB / 0.7852 GB, free: 5.234 MB / 442.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.006269/1.368, allocations: 2.18 MB / 0.7873 GB, free: 3.395 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001708/1.37, allocations: 442.7 kB / 0.7878 GB, free: 2.957 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01727/1.388, allocations: 6.435 MB / 0.794 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.591e-05/1.388, allocations: 32 kB / 0.7941 GB, free: 14.41 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-05/1.388, allocations: 19.75 kB / 0.7941 GB, free: 14.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.498e-05/1.388, allocations: 13.55 kB / 0.7941 GB, free: 14.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0307/1.418, allocations: 12.47 MB / 0.8063 GB, free: 4.078 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.894e-05/1.419, allocations: 7.688 kB / 0.8063 GB, free: 4.074 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00232/1.421, allocations: 465.6 kB / 0.8067 GB, free: 3.699 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004117/1.425, allocations: 1.614 MB / 0.8083 GB, free: 2.391 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006933/1.426, allocations: 71.08 kB / 0.8084 GB, free: 2.328 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2395/1.665, allocations: 30.23 MB / 0.8379 GB, free: 55.88 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/1.665, allocations: 4.25 kB / 0.8379 GB, free: 55.88 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01415/1.679, allocations: 8.792 MB / 0.8465 GB, free: 54.89 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002924/1.682, allocations: 0.9222 MB / 0.8474 GB, free: 54.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001275/1.684, allocations: 69.75 kB / 0.8475 GB, free: 54.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002609/1.686, allocations: 199.7 kB / 0.8476 GB, free: 54.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006904/1.687, allocations: 293.8 kB / 0.8479 GB, free: 54.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002317/1.687, allocations: 91.84 kB / 0.848 GB, free: 54.79 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004389/1.692, allocations: 2.673 MB / 0.8506 GB, free: 54.61 MB / 458.7 MB Notification: Performance of sort global known variables: time 2e-07/1.692, allocations: 0 / 0.8506 GB, free: 54.61 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006474/1.698, allocations: 1.377 MB / 0.852 GB, free: 54.61 MB / 458.7 MB 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%) 8,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(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.001318/1.7, allocations: 0.5159 MB / 0.8525 GB, free: 54.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01008/1.71, allocations: 6.364 MB / 0.8587 GB, free: 52.87 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/1.71, allocations: 4.5 kB / 0.8587 GB, free: 52.87 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007355/1.717, allocations: 4.825 MB / 0.8634 GB, free: 50.93 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009601/1.727, allocations: 1.276 MB / 0.8647 GB, free: 50.91 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0258/1.753, allocations: 15.77 MB / 0.8801 GB, free: 44.47 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004887/1.757, allocations: 4.392 MB / 0.8843 GB, free: 43.55 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001386/1.759, allocations: 296.5 kB / 0.8846 GB, free: 43.55 MB / 458.7 MB Notification: Performance of SimCode: time 9.42e-07/1.759, allocations: 0 / 0.8846 GB, free: 43.55 MB / 458.7 MB Notification: Performance of Templates: time 1.555/3.314, allocations: 0.6259 GB / 1.511 GB, free: 101.1 MB / 490.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMS_Start/AIMS_Start.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches