Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.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.AIMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002102/0.002102, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.232/2.232, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001159/0.001159, allocations: 93.44 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.511e-05/2.511e-05, allocations: 4 kB / 314.8 MB, free: 9.133 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3373, allocations: 47.56 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1865/0.5238, allocations: 108.9 MB / 471.3 MB, free: 9.324 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003408/0.5242, allocations: 87.95 kB / 471.4 MB, free: 9.238 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5738/1.098, allocations: 79.5 MB / 0.5379 GB, free: 93.55 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.465e-06/1.098, allocations: 0 / 0.5379 GB, free: 93.55 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003353/1.098, allocations: 77.19 kB / 0.538 GB, free: 93.54 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.01372/1.112, allocations: 3.205 MB / 0.5411 GB, free: 91.94 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/1.112, allocations: 9.875 kB / 0.5412 GB, free: 91.94 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006543/1.119, allocations: 0.7369 MB / 0.5419 GB, free: 91.69 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01229/1.131, allocations: 3.305 MB / 0.5451 GB, free: 90.05 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002621/1.131, allocations: 108.6 kB / 0.5452 GB, free: 90.04 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001365/1.133, allocations: 189.7 kB / 0.5454 GB, free: 90.04 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01001/1.143, allocations: 3.16 MB / 0.5485 GB, free: 88.64 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0121/1.155, allocations: 3.672 MB / 0.5521 GB, free: 86.95 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001306/1.155, allocations: 7.562 kB / 0.5521 GB, free: 86.95 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004565/1.156, allocations: 7.969 kB / 0.5521 GB, free: 86.94 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001789/1.156, allocations: 142.5 kB / 0.5522 GB, free: 86.93 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03374/1.19, allocations: 13.27 MB / 0.5652 GB, free: 75.5 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009335/1.199, allocations: 6.519 MB / 0.5715 GB, free: 68.18 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003288/1.202, allocations: 1.309 MB / 0.5728 GB, free: 66.89 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009672/1.212, allocations: 3.701 MB / 0.5764 GB, free: 63.14 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.318e-05/1.212, allocations: 51.88 kB / 0.5765 GB, free: 63.09 MB / 395.1 MB Notification: Performance of pre-optimization done (n=144): time 5.4e-06/1.212, allocations: 4 kB / 0.5765 GB, free: 63.08 MB / 395.1 MB Notification: Performance of matching and sorting (n=147): time 0.01299/1.225, allocations: 4.46 MB / 0.5808 GB, free: 58.5 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/1.225, allocations: 68.72 kB / 0.5809 GB, free: 58.43 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002546/1.228, allocations: 1.243 MB / 0.5821 GB, free: 57.18 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003717/1.228, allocations: 29.7 kB / 0.5821 GB, free: 57.14 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008882/1.229, allocations: 1.38 MB / 0.5835 GB, free: 55.75 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005965/1.23, allocations: 492.5 kB / 0.584 GB, free: 55.26 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/1.23, allocations: 0 / 0.584 GB, free: 55.26 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/1.23, allocations: 386.8 kB / 0.5843 GB, free: 54.88 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/1.232, allocations: 0.6248 MB / 0.5849 GB, free: 54.25 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/1.233, allocations: 1.089 MB / 0.586 GB, free: 52.96 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002631/1.236, allocations: 0.9821 MB / 0.587 GB, free: 51.98 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.961e-05/1.236, allocations: 4 kB / 0.587 GB, free: 51.98 MB / 395.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006104/1.242, allocations: 2.341 MB / 0.5893 GB, free: 49.59 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.65e-05/1.242, allocations: 9.25 kB / 0.5893 GB, free: 49.59 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.806e-05/1.242, allocations: 16 kB / 0.5893 GB, free: 49.57 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001343/1.244, allocations: 368.4 kB / 0.5896 GB, free: 49.2 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00282/1.246, allocations: 387.4 kB / 0.59 GB, free: 48.82 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008719/1.255, allocations: 7.556 MB / 0.5974 GB, free: 40.81 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002318/1.258, allocations: 40.12 kB / 0.5974 GB, free: 40.77 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004472/1.258, allocations: 71.98 kB / 0.5975 GB, free: 40.7 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * 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: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 7,(3,100.0%) 9,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004345/1.258, allocations: 148.4 kB / 0.5976 GB, free: 40.55 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005665/1.259, allocations: 177.8 kB / 0.5978 GB, free: 40.37 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006399/1.265, allocations: 2.323 MB / 0.6001 GB, free: 37.98 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.106e-05/1.266, allocations: 16 kB / 0.6001 GB, free: 37.96 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/1.266, allocations: 8 kB / 0.6001 GB, free: 37.95 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.363e-05/1.266, allocations: 7.969 kB / 0.6001 GB, free: 37.95 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01259/1.278, allocations: 4.752 MB / 0.6047 GB, free: 33.09 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/1.278, allocations: 0 / 0.6047 GB, free: 33.09 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001719/1.28, allocations: 195.8 kB / 0.6049 GB, free: 32.9 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002263/1.282, allocations: 0.5359 MB / 0.6054 GB, free: 32.35 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002719/1.283, allocations: 23.98 kB / 0.6055 GB, free: 32.32 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0142/1.297, allocations: 11.76 MB / 0.6169 GB, free: 19.89 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/1.297, allocations: 7.984 kB / 0.617 GB, free: 19.89 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008016/1.305, allocations: 3.369 MB / 0.6202 GB, free: 16.39 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001444/1.306, allocations: 414.9 kB / 0.6206 GB, free: 15.97 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004616/1.307, allocations: 11.98 kB / 0.6207 GB, free: 15.96 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001738/1.309, allocations: 43.95 kB / 0.6207 GB, free: 15.91 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004153/1.309, allocations: 129.1 kB / 0.6208 GB, free: 15.79 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000135/1.309, allocations: 39.94 kB / 0.6209 GB, free: 15.75 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001986/1.311, allocations: 0.9327 MB / 0.6218 GB, free: 14.82 MB / 395.1 MB Notification: Performance of sort global known variables: time 5.81e-07/1.311, allocations: 0 / 0.6218 GB, free: 14.82 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.003494/1.315, allocations: 0.5429 MB / 0.6223 GB, free: 14.27 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 7,(1,100.0%) 13,(3,100.0%) 9,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008364/1.316, allocations: 336 kB / 0.6226 GB, free: 13.95 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.004605/1.32, allocations: 2.24 MB / 0.6248 GB, free: 11.66 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/1.32, allocations: 0 / 0.6248 GB, free: 11.66 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00346/1.324, allocations: 1.681 MB / 0.6264 GB, free: 9.918 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003432/1.327, allocations: 393.2 kB / 0.6268 GB, free: 9.535 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01309/1.34, allocations: 4.67 MB / 0.6314 GB, free: 4.809 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003003/1.344, allocations: 2.327 MB / 0.6337 GB, free: 2.453 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008536/1.344, allocations: 123.4 kB / 0.6338 GB, free: 2.336 MB / 395.1 MB Notification: Performance of SimCode: time 9.82e-07/1.344, allocations: 0 / 0.6338 GB, free: 2.336 MB / 395.1 MB Notification: Performance of Templates: time 0.4726/1.817, allocations: 119.4 MB / 0.7503 GB, free: 30.89 MB / 411.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Steinmetz/AIMC_Steinmetz.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches