Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 94.86 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 183.6 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002837/0.0002838, allocations: 5.406 kB / 300.8 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.121, allocations: 50.42 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.008319/0.1293, allocations: 6.354 MB / 357.6 MB, free: 5.262 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006167/0.1356, allocations: 2.747 MB / 360.3 MB, free: 2.508 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001151/0.1368, allocations: 27.94 kB / 360.4 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001121/0.1379, allocations: 306 kB / 360.7 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002224/0.1401, allocations: 0.7009 MB / 361.4 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002606/0.1428, allocations: 1.005 MB / 362.4 MB, free: 484 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002206/0.145, allocations: 1.042 MB / 363.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002783/0.1478, allocations: 1.421 MB / 364.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008978/0.1487, allocations: 0.498 MB / 365.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009028/0.1496, allocations: 0.63 MB / 366 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000157/0.1498, allocations: 64 kB / 366 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001099/0.1509, allocations: 323.6 kB / 366.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002373/0.1511, allocations: 243 kB / 366.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003782/0.1515, allocations: 292.9 kB / 366.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002466/0.154, allocations: 1.679 MB / 368.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.154, allocations: 4 kB / 368.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.128e-06/0.154, allocations: 0 / 368.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.791e-05/0.1541, allocations: 0 / 368.5 MB, free: 10.22 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 371 * Number of variables: 371 Notification: Performance of Generate backend data structure: time 0.006316/0.1604, allocations: 1.876 MB / 370.4 MB, free: 8.293 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.1605, allocations: 8.031 kB / 370.4 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005221/0.161, allocations: 226.2 kB / 370.6 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003467/0.1645, allocations: 0.525 MB / 371.2 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001837/0.1663, allocations: 0.8205 MB / 372 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/0.1665, allocations: 140.6 kB / 372.1 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002499/0.1668, allocations: 159.9 kB / 372.3 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00297/0.1698, allocations: 1.331 MB / 373.6 MB, free: 5.008 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.094e-05/0.1698, allocations: 7.906 kB / 373.6 MB, free: 5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001465/0.17, allocations: 60 kB / 373.7 MB, free: 4.941 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.078e-05/0.17, allocations: 36 kB / 373.7 MB, free: 4.906 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002874/0.1729, allocations: 1.315 MB / 375 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009505/0.1824, allocations: 4.88 MB / 379.9 MB, free: 14.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003429/0.1859, allocations: 1.945 MB / 381.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001446/0.1861, allocations: 114 kB / 382 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001464/0.1875, allocations: 0.7333 MB / 382.7 MB, free: 11.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=132): time 3.597e-06/0.1875, allocations: 0 / 382.7 MB, free: 11.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=163): time 0.01488/0.2024, allocations: 5.586 MB / 388.3 MB, free: 5.785 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.2026, allocations: 165.8 kB / 388.5 MB, free: 5.594 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000813/0.2034, allocations: 0.5939 MB / 389 MB, free: 4.988 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001409/0.2036, allocations: 57.7 kB / 389.1 MB, free: 4.926 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004896/0.2041, allocations: 0.5701 MB / 389.7 MB, free: 4.344 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005356/0.2046, allocations: 0.5313 MB / 390.2 MB, free: 3.805 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8e-05/0.2047, allocations: 36 kB / 390.2 MB, free: 3.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002165/0.2049, allocations: 410.7 kB / 390.6 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001139/0.2061, allocations: 0.5115 MB / 391.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001344/0.2074, allocations: 0.8326 MB / 392 MB, free: 1.898 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001273/0.2087, allocations: 0.6201 MB / 392.6 MB, free: 1.281 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.2087, allocations: 4 kB / 392.6 MB, free: 1.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004609/0.2133, allocations: 2.008 MB / 394.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.002e-05/0.2134, allocations: 8 kB / 394.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.632e-05/0.2134, allocations: 15.94 kB / 394.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002108/0.2155, allocations: 0.5213 MB / 395.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.2168, allocations: 295.5 kB / 395.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0109/0.2277, allocations: 8.747 MB / 404.2 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001325/0.2291, allocations: 71.97 kB / 404.3 MB, free: 5.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.2292, allocations: 67.98 kB / 404.3 MB, free: 5 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,$PRE.rootMeanSquare.mean1.y_last,rootMeanSquare.mean1.y_last,$PRE.rootMeanSquare.mean2.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 154 * 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,(1,100.0%) 19,(1,100.0%) 19} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007369/0.2299, allocations: 357.5 kB / 404.7 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/0.2301, allocations: 110.6 kB / 404.8 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004424/0.2345, allocations: 1.902 MB / 406.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.716e-05/0.2346, allocations: 20 kB / 406.7 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.2346, allocations: 8 kB / 406.7 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-05/0.2346, allocations: 7.969 kB / 406.7 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006522/0.2412, allocations: 3.388 MB / 410.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.2412, allocations: 3.953 kB / 410.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009975/0.2422, allocations: 215.7 kB / 410.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002045/0.2443, allocations: 0.5009 MB / 410.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001387/0.2444, allocations: 43.92 kB / 410.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009832/0.2543, allocations: 8.474 MB / 419.3 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.2543, allocations: 4.5 kB / 419.4 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005808/0.2601, allocations: 2.614 MB / 422 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005298/0.2607, allocations: 287.6 kB / 422.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001637/0.2608, allocations: 32 kB / 422.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007471/0.2616, allocations: 75.95 kB / 422.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003244/0.2619, allocations: 133 kB / 422.5 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.134e-05/0.262, allocations: 51.92 kB / 422.5 MB, free: 2.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005575/0.2626, allocations: 415 kB / 422.9 MB, free: 1.688 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2626, allocations: 4 kB / 422.9 MB, free: 1.684 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00158/0.2642, allocations: 416 kB / 423.3 MB, free: 1.277 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,rootMeanSquare.mean1.y_last,rootMeanSquare.mean2.y_last) * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 103 * 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%) 19,(1,100.0%) 9,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.1959/0.4601, allocations: 3.315 MB / 426.7 MB, free: 61.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004043/0.4642, allocations: 2.085 MB / 428.7 MB, free: 60.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.4643, allocations: 0 / 428.7 MB, free: 60.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002242/0.4665, allocations: 1.396 MB / 430.1 MB, free: 60.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006901/0.4672, allocations: 88.31 kB / 430.2 MB, free: 60.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007605/0.4748, allocations: 9.605 MB / 439.8 MB, free: 52.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000916/0.4758, allocations: 1.214 MB / 441 MB, free: 52.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008531/0.4766, allocations: 166.4 kB / 441.2 MB, free: 51.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006389/0.4773, allocations: 0.5088 MB / 441.7 MB, free: 51.97 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4773, allocations: 1.094 kB / 441.7 MB, free: 51.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0371/0.5144, allocations: 25.46 MB / 467.2 MB, free: 35.77 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001525/0.5146, allocations: 242.3 kB / 467.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.725/3.24, allocations: 0 / 467.4 MB, free: 35.52 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat does not exist to compare? outputFormat=mat