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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001662/0.001663, allocations: 176.2 kB / 8.148 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.753/1.753, allocations: 205.2 MB / 213.8 MB, free: 13.87 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.001295/0.001294, allocations: 90.53 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.794e-06/7.955e-06, allocations: 0 / 314.3 MB, free: 9.027 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.2783, allocations: 47.55 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1559/0.4342, allocations: 92.85 MB / 454.7 MB, free: 9.184 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/0.4345, allocations: 88.38 kB / 454.8 MB, free: 9.098 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1487/0.5833, allocations: 36.64 MB / 491.4 MB, free: 4.199 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.665e-05/0.5834, allocations: 24 kB / 491.4 MB, free: 4.176 MB / 378.7 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.00718/0.5906, allocations: 1.622 MB / 493.1 MB, free: 2.496 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.5907, allocations: 8.031 kB / 493.1 MB, free: 2.488 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005633/0.5963, allocations: 0.5445 MB / 493.6 MB, free: 1.941 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002578/0.599, allocations: 0.7466 MB / 494.4 MB, free: 1.152 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002018/0.5992, allocations: 88.66 kB / 494.4 MB, free: 1.059 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004115/0.5996, allocations: 99.84 kB / 494.5 MB, free: 0.9609 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004531/0.6042, allocations: 1.158 MB / 495.7 MB, free: 15.8 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003885/0.6081, allocations: 1.064 MB / 496.8 MB, free: 14.72 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.986e-05/0.6082, allocations: 3.906 kB / 496.8 MB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001904/0.6084, allocations: 8 kB / 496.8 MB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-05/0.6085, allocations: 36 kB / 496.8 MB, free: 14.67 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01547/0.624, allocations: 4.955 MB / 0.49 GB, free: 9.449 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001637/0.6256, allocations: 0.5569 MB / 0.4906 GB, free: 8.891 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001448/0.6271, allocations: 496.6 kB / 0.491 GB, free: 8.402 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002262/0.6274, allocations: 110.4 kB / 0.4911 GB, free: 8.277 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001885/0.6293, allocations: 0.6127 MB / 0.4917 GB, free: 7.633 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 7.634e-06/0.6293, allocations: 96 / 0.4917 GB, free: 7.633 MB / 394.7 MB Notification: Performance of matching and sorting (n=165): time 0.01923/0.6485, allocations: 4.343 MB / 0.496 GB, free: 3.219 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001741/0.6488, allocations: 230.9 kB / 0.4962 GB, free: 2.941 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/0.65, allocations: 0.4915 MB / 0.4967 GB, free: 2.445 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003691/0.6504, allocations: 29.7 kB / 0.4967 GB, free: 2.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005535/0.6509, allocations: 0.5215 MB / 0.4972 GB, free: 1.879 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008811/0.6518, allocations: 0.5157 MB / 0.4977 GB, free: 1.355 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001421/0.652, allocations: 4 kB / 0.4977 GB, free: 1.352 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002242/0.6522, allocations: 370.8 kB / 0.4981 GB, free: 0.9805 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001497/0.6537, allocations: 440 kB / 0.4985 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1404/0.7941, allocations: 0.7926 MB / 0.4993 GB, free: 143.1 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002228/0.7964, allocations: 0.5775 MB / 0.4998 GB, free: 143.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.465e-06/0.7964, allocations: 3.938 kB / 0.4998 GB, free: 143.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.0077/0.8042, allocations: 1.761 MB / 0.5016 GB, free: 143 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.8042, allocations: 10.12 kB / 0.5016 GB, free: 143 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.72e-05/0.8043, allocations: 9.094 kB / 0.5016 GB, free: 143 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002455/0.8068, allocations: 439.9 kB / 0.502 GB, free: 143 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002686/0.8095, allocations: 312.2 kB / 0.5023 GB, free: 143 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01411/0.8236, allocations: 8.139 MB / 0.5102 GB, free: 138 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001931/0.8256, allocations: 55.78 kB / 0.5103 GB, free: 138 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001744/0.8258, allocations: 74.94 kB / 0.5104 GB, free: 138 MB / 394.7 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,(6,38.9%) 14,(6,38.9%) 14} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003956/0.8262, allocations: 76.81 kB / 0.5104 GB, free: 137.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003115/0.8265, allocations: 107.8 kB / 0.5105 GB, free: 137.9 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007254/0.8338, allocations: 1.649 MB / 0.5121 GB, free: 137.8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.567e-05/0.8339, allocations: 17.19 kB / 0.5122 GB, free: 137.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.292e-05/0.8339, allocations: 10.66 kB / 0.5122 GB, free: 137.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.857e-05/0.834, allocations: 9.562 kB / 0.5122 GB, free: 137.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009869/0.8439, allocations: 3.316 MB / 0.5154 GB, free: 137.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.389e-05/0.8439, allocations: 3.531 kB / 0.5154 GB, free: 137.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002077/0.846, allocations: 215.8 kB / 0.5156 GB, free: 137.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002426/0.8485, allocations: 432.6 kB / 0.516 GB, free: 137.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000181/0.8487, allocations: 21.73 kB / 0.5161 GB, free: 137.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01776/0.8664, allocations: 7.834 MB / 0.5237 GB, free: 132 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.248e-06/0.8665, allocations: 6.5 kB / 0.5237 GB, free: 132 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01239/0.8789, allocations: 2.425 MB / 0.5261 GB, free: 131.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001453/0.8805, allocations: 298 kB / 0.5264 GB, free: 131.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005161/0.881, allocations: 9.938 kB / 0.5264 GB, free: 131.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002546/0.8836, allocations: 50.11 kB / 0.5264 GB, free: 131.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004662/0.8841, allocations: 93.58 kB / 0.5265 GB, free: 131.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002521/0.8844, allocations: 53.23 kB / 0.5266 GB, free: 131.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001076/0.8855, allocations: 371.9 kB / 0.5269 GB, free: 131.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003703/0.8892, allocations: 349 kB / 0.5273 GB, free: 131.4 MB / 394.7 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.0008425/0.8901, allocations: 185.4 kB / 0.5274 GB, free: 131.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006873/0.897, allocations: 1.79 MB / 0.5292 GB, free: 130.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/0.8971, allocations: 0.75 kB / 0.5292 GB, free: 130.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004654/0.9018, allocations: 1.195 MB / 0.5303 GB, free: 130.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.9033, allocations: 70.39 kB / 0.5304 GB, free: 130.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01602/0.9193, allocations: 2.664 MB / 0.533 GB, free: 129.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002372/0.9217, allocations: 1.336 MB / 0.5343 GB, free: 128.5 MB / 394.7 MB Notification: Performance of SimCode: time 1.613e-06/0.9218, allocations: 3.875 kB / 0.5343 GB, free: 128.5 MB / 394.7 MB Notification: Performance of Templates: time 0.09237/1.014, allocations: 39.28 MB / 0.5727 GB, free: 105.8 MB / 394.7 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