Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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.QuasiStatic.FluxTubes.Examples.NonLinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|fundamentalWavePermabilitySensor.harmonicFlux.mean1.x|fundamentalWavePermabilitySensor.harmonicFlux.mean2.x|fundamentalWavePermabilitySensor.harmonicPotential.mean1.x|fundamentalWavePermabilitySensor.harmonicPotential.mean2.x|r_mLeak.port_p.Phi|rootMeanSquare.mean1.x|rootMeanSquare.mean2.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|fundamentalWavePermabilitySensor.harmonicFlux.mean1.x|fundamentalWavePermabilitySensor.harmonicFlux.mean2.x|fundamentalWavePermabilitySensor.harmonicPotential.mean1.x|fundamentalWavePermabilitySensor.harmonicPotential.mean2.x|r_mLeak.port_p.Phi|rootMeanSquare.mean1.x|rootMeanSquare.mean2.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002171/0.002171, allocations: 177.8 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.056/2.056, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001112/0.001111, allocations: 87.81 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.932e-05/1.929e-05, allocations: 4 kB / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3488/0.3489, allocations: 47.56 MB / 362.3 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1559/0.5048, allocations: 92.94 MB / 455.3 MB, free: 9.355 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/0.5052, allocations: 79.95 kB / 455.3 MB, free: 9.277 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1519/0.6571, allocations: 37 MB / 492.3 MB, free: 4.035 MB / 379.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6571, allocations: 0 / 492.3 MB, free: 4.035 MB / 379.1 MB Notification: Performance of Transformations before backend: time 8.043e-05/0.6572, allocations: 28 kB / 492.4 MB, free: 4.008 MB / 379.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.006784/0.664, allocations: 1.609 MB / 494 MB, free: 2.344 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/0.6641, allocations: 8.031 kB / 494 MB, free: 2.336 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004865/0.669, allocations: 0.5056 MB / 494.5 MB, free: 1.828 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002309/0.6713, allocations: 0.7543 MB / 495.2 MB, free: 1.027 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001939/0.6715, allocations: 96.64 kB / 495.3 MB, free: 0.9258 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003491/0.6719, allocations: 92 kB / 495.4 MB, free: 0.8359 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0038/0.6757, allocations: 1.154 MB / 496.6 MB, free: 15.68 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003644/0.6794, allocations: 1.06 MB / 497.6 MB, free: 14.6 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.369e-05/0.6795, allocations: 7.906 kB / 497.7 MB, free: 14.59 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001899/0.6797, allocations: 7.984 kB / 497.7 MB, free: 14.59 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-05/0.6798, allocations: 36 kB / 497.7 MB, free: 14.55 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01498/0.6948, allocations: 4.83 MB / 0.4907 GB, free: 9.492 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004594/0.6994, allocations: 2.323 MB / 0.493 GB, free: 6.914 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001522/0.701, allocations: 497.3 kB / 0.4935 GB, free: 6.43 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002138/0.7013, allocations: 106.4 kB / 0.4936 GB, free: 6.305 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001784/0.7031, allocations: 0.6595 MB / 0.4942 GB, free: 5.609 MB / 395.1 MB Notification: Performance of pre-optimization done (n=134): time 4.528e-06/0.7031, allocations: 4 kB / 0.4942 GB, free: 5.605 MB / 395.1 MB Notification: Performance of matching and sorting (n=165): time 0.01924/0.7224, allocations: 4.697 MB / 0.4988 GB, free: 0.8398 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001597/0.7226, allocations: 234.9 kB / 0.4991 GB, free: 0.5625 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001083/0.7237, allocations: 0.4955 MB / 0.4995 GB, free: 60 kB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003426/0.724, allocations: 29.7 kB / 0.4996 GB, free: 24 kB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2851/1.009, allocations: 0.6004 MB / 0.5001 GB, free: 103.1 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000808/1.01, allocations: 0.511 MB / 0.5006 GB, free: 102.8 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/1.01, allocations: 0 / 0.5006 GB, free: 102.8 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/1.01, allocations: 375.8 kB / 0.501 GB, free: 102.5 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001326/1.012, allocations: 426.9 kB / 0.5014 GB, free: 102.5 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001744/1.013, allocations: 0.787 MB / 0.5022 GB, free: 102.1 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002748/1.016, allocations: 0.6822 MB / 0.5028 GB, free: 102 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.732e-05/1.016, allocations: 2.781 kB / 0.5029 GB, free: 102 MB / 395.1 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.007935/1.024, allocations: 1.871 MB / 0.5047 GB, free: 101.9 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.371e-05/1.024, allocations: 9.625 kB / 0.5047 GB, free: 101.9 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.642e-05/1.024, allocations: 10.22 kB / 0.5047 GB, free: 101.9 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002635/1.027, allocations: 466.2 kB / 0.5051 GB, free: 101.9 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002541/1.03, allocations: 308.2 kB / 0.5054 GB, free: 101.9 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01353/1.043, allocations: 8.256 MB / 0.5135 GB, free: 96.67 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001993/1.045, allocations: 48.47 kB / 0.5135 GB, free: 96.67 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002403/1.046, allocations: 74.28 kB / 0.5136 GB, free: 96.67 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,$PRE.rootMeanSquare.mean1.y,rootMeanSquare.mean1.y,$PRE.rootMeanSquare.mean2.y,rootMeanSquare.mean2.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 162 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 9,(2,100.0%) 18,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004414/1.046, allocations: 162.4 kB / 0.5138 GB, free: 96.56 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003452/1.046, allocations: 109 kB / 0.5139 GB, free: 96.5 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006947/1.053, allocations: 1.749 MB / 0.5156 GB, free: 96.36 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.241e-05/1.053, allocations: 17.5 kB / 0.5156 GB, free: 96.36 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.068e-05/1.053, allocations: 9.844 kB / 0.5156 GB, free: 96.36 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-05/1.053, allocations: 11.06 kB / 0.5156 GB, free: 96.36 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/1.064, allocations: 3.401 MB / 0.5189 GB, free: 95.73 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.226e-05/1.064, allocations: 3.438 kB / 0.5189 GB, free: 95.73 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002108/1.066, allocations: 208.4 kB / 0.5191 GB, free: 95.73 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002519/1.069, allocations: 438.9 kB / 0.5196 GB, free: 95.7 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003475/1.069, allocations: 21.47 kB / 0.5196 GB, free: 95.7 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/1.082, allocations: 8 MB / 0.5274 GB, free: 90.05 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/1.082, allocations: 3.875 kB / 0.5274 GB, free: 90.05 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007857/1.089, allocations: 2.498 MB / 0.5298 GB, free: 88.89 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008053/1.09, allocations: 294.3 kB / 0.5301 GB, free: 88.67 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000238/1.091, allocations: 11.61 kB / 0.5301 GB, free: 88.66 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/1.092, allocations: 44.27 kB / 0.5302 GB, free: 88.66 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003884/1.092, allocations: 136 kB / 0.5303 GB, free: 88.63 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/1.092, allocations: 52.17 kB / 0.5304 GB, free: 88.62 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0006127/1.093, allocations: 366.7 kB / 0.5307 GB, free: 88.43 MB / 395.1 MB Notification: Performance of sort global known variables: time 3.91e-07/1.093, allocations: 0 / 0.5307 GB, free: 88.43 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002431/1.096, allocations: 359.7 kB / 0.531 GB, free: 88.42 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (coil.i,fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,rootMeanSquare.mean1.y,rootMeanSquare.mean2.y) * Number of discrete states: 6 (fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 9,(2,100.0%) 18,(1,100.0%) 17} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005181/1.096, allocations: 208 kB / 0.5312 GB, free: 88.31 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.004251/1.1, allocations: 1.853 MB / 0.5331 GB, free: 87.34 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/1.1, allocations: 0 / 0.5331 GB, free: 87.34 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002829/1.103, allocations: 1.29 MB / 0.5343 GB, free: 86.55 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000945/1.104, allocations: 63.33 kB / 0.5344 GB, free: 86.52 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008965/1.113, allocations: 2.587 MB / 0.5369 GB, free: 85.42 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008322/1.114, allocations: 1.224 MB / 0.5381 GB, free: 84.68 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007166/1.115, allocations: 100.3 kB / 0.5382 GB, free: 84.66 MB / 395.1 MB Notification: Performance of SimCode: time 1.483e-06/1.115, allocations: 0 / 0.5382 GB, free: 84.66 MB / 395.1 MB Notification: Performance of Templates: time 0.0531/1.168, allocations: 37.17 MB / 0.5745 GB, free: 63.41 MB / 395.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/NonLinearInductor/NonLinearInductor.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches