Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) [: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.001015/0.001015, allocations: 174.9 kB / 8.473 MB, free: 1.875 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.136/1.136, allocations: 205.2 MB / 214.1 MB, free: 5.078 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009344/0.0009345, allocations: 87.33 kB / 262.1 MB, free: 5.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.15/0.151, allocations: 52.97 MB / 315.1 MB, free: 41.26 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0622/0.2132, allocations: 47.58 MB / 362.6 MB, free: 9.719 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2075/0.4207, allocations: 92.84 MB / 455.5 MB, free: 8.207 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001951/0.421, allocations: 82.39 kB / 455.6 MB, free: 8.195 MB / 314.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.09676/0.5177, allocations: 38.28 MB / 493.8 MB, free: 464 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.5178, allocations: 8 kB / 493.8 MB, free: 456 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003464/0.5212, allocations: 0.5487 MB / 494.4 MB, free: 15.94 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.5225, allocations: 0.7404 MB / 495.1 MB, free: 15.34 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/0.5227, allocations: 97.62 kB / 495.2 MB, free: 15.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002042/0.5229, allocations: 102.3 kB / 495.3 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002309/0.5252, allocations: 1.166 MB / 496.5 MB, free: 14.1 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00215/0.5274, allocations: 1.06 MB / 497.6 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.014e-05/0.5274, allocations: 7.906 kB / 497.6 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/0.5275, allocations: 3.984 kB / 497.6 MB, free: 13.01 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.894e-05/0.5276, allocations: 36 kB / 497.6 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008405/0.536, allocations: 4.958 MB / 0.4908 GB, free: 7.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000913/0.5369, allocations: 0.5502 MB / 0.4913 GB, free: 7.195 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008307/0.5378, allocations: 492.7 kB / 0.4918 GB, free: 6.711 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001362/0.5379, allocations: 126.2 kB / 0.4919 GB, free: 6.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00101/0.5389, allocations: 0.6128 MB / 0.4925 GB, free: 5.926 MB / 346.7 MB Notification: Performance of pre-optimization done (n=134): time 2.886e-06/0.539, allocations: 0 / 0.4925 GB, free: 5.926 MB / 346.7 MB Notification: Performance of matching and sorting (n=165): time 0.01086/0.5498, allocations: 4.325 MB / 0.4967 GB, free: 1.527 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.5499, allocations: 238.9 kB / 0.497 GB, free: 1.242 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006479/0.5506, allocations: 0.4955 MB / 0.4974 GB, free: 0.7422 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.511e-05/0.5507, allocations: 29.7 kB / 0.4975 GB, free: 0.707 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003379/0.5511, allocations: 0.4957 MB / 0.498 GB, free: 204 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004181/0.5515, allocations: 0.5157 MB / 0.4985 GB, free: 15.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.903e-05/0.5516, allocations: 0 / 0.4985 GB, free: 15.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.5518, allocations: 410.7 kB / 0.4989 GB, free: 15.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008221/0.5526, allocations: 440 kB / 0.4993 GB, free: 14.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/0.5537, allocations: 0.7945 MB / 0.5 GB, free: 13.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001281/0.555, allocations: 0.5781 MB / 0.5006 GB, free: 13.31 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-06/0.555, allocations: 4 kB / 0.5006 GB, free: 13.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004436/0.5594, allocations: 1.802 MB / 0.5024 GB, free: 11.49 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.5595, allocations: 5.875 kB / 0.5024 GB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.5595, allocations: 12 kB / 0.5024 GB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001669/0.5612, allocations: 475 kB / 0.5028 GB, free: 11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/0.5626, allocations: 307.5 kB / 0.5031 GB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01/0.5726, allocations: 8.082 MB / 0.511 GB, free: 2.156 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.5738, allocations: 59.97 kB / 0.5111 GB, free: 2.098 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/0.5739, allocations: 71.98 kB / 0.5112 GB, free: 2.027 MB / 362.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,(2,100.0%) 18,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002885/0.5742, allocations: 163.8 kB / 0.5113 GB, free: 1.859 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001874/0.5744, allocations: 106.7 kB / 0.5114 GB, free: 1.754 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004397/0.5788, allocations: 1.658 MB / 0.513 GB, free: 72 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.511e-05/0.5789, allocations: 16 kB / 0.513 GB, free: 56 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.5789, allocations: 12 kB / 0.5131 GB, free: 44 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.885e-05/0.5789, allocations: 7.969 kB / 0.5131 GB, free: 36 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006486/0.5854, allocations: 3.304 MB / 0.5163 GB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.5854, allocations: 0 / 0.5163 GB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.5866, allocations: 219.8 kB / 0.5165 GB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001583/0.5882, allocations: 439 kB / 0.5169 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.5883, allocations: 19.98 kB / 0.5169 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009369/0.5977, allocations: 7.823 MB / 0.5246 GB, free: 3.688 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.5977, allocations: 0 / 0.5246 GB, free: 3.688 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005121/0.6029, allocations: 2.427 MB / 0.527 GB, free: 1.199 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008416/0.6113, allocations: 4.816 MB / 0.5317 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005027/0.6118, allocations: 303.6 kB / 0.5319 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001923/0.612, allocations: 8 kB / 0.532 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009146/0.6129, allocations: 47.95 kB / 0.532 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/0.6132, allocations: 97.08 kB / 0.5321 GB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/0.6133, allocations: 47.97 kB / 0.5321 GB, free: 11.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0004905/0.6138, allocations: 371.2 kB / 0.5325 GB, free: 11.44 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002338/0.6161, allocations: 367.9 kB / 0.5328 GB, free: 11.08 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.0003588/0.6165, allocations: 200.6 kB / 0.533 GB, free: 10.88 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00292/0.6194, allocations: 1.766 MB / 0.5348 GB, free: 9.086 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.6194, allocations: 0 / 0.5348 GB, free: 9.086 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001768/0.6212, allocations: 1.153 MB / 0.5359 GB, free: 7.895 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005156/0.6217, allocations: 59.95 kB / 0.5359 GB, free: 7.836 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006907/0.6287, allocations: 2.667 MB / 0.5385 GB, free: 5.117 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001234/0.6299, allocations: 1.327 MB / 0.5398 GB, free: 3.762 MB / 394.7 MB Notification: Performance of SimCode: time 3.81e-07/0.6299, allocations: 0 / 0.5398 GB, free: 3.762 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat does not exist to compare? outputFormat=mat