Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0008298/0.0008298, allocations: 95.22 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008842/0.0008843, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 246 MB, free: 11.96 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003162/0.0003163, allocations: 4 kB / 306.8 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1218, allocations: 51.49 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.009609/0.1315, allocations: 6.821 MB / 365.1 MB, free: 7.121 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006205/0.1377, allocations: 2.793 MB / 367.9 MB, free: 4.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001575/0.1393, allocations: 27.94 kB / 367.9 MB, free: 4.293 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001616/0.141, allocations: 298.2 kB / 368.2 MB, free: 4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002785/0.1438, allocations: 0.5127 MB / 368.7 MB, free: 3.484 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003193/0.147, allocations: 1.133 MB / 369.9 MB, free: 2.355 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002854/0.1498, allocations: 1.511 MB / 371.4 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2607/0.4105, allocations: 1.461 MB / 372.9 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00143/0.412, allocations: 0.512 MB / 373.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001108/0.4131, allocations: 0.6449 MB / 374 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002154/0.4134, allocations: 65.34 kB / 374.1 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001176/0.4145, allocations: 372.3 kB / 374.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003203/0.4149, allocations: 250.9 kB / 374.7 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004828/0.4154, allocations: 294 kB / 375 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002612/0.418, allocations: 1.733 MB / 376.7 MB, free: 8.656 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.418, allocations: 0 / 376.7 MB, free: 8.656 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.418, allocations: 4.219 kB / 376.7 MB, free: 8.656 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.302e-05/0.4181, allocations: 0 / 376.7 MB, free: 8.656 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.00603/0.4241, allocations: 1.904 MB / 378.6 MB, free: 7.797 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/0.4242, allocations: 14.12 kB / 378.6 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006042/0.4248, allocations: 221.8 kB / 378.8 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004097/0.4289, allocations: 0.6201 MB / 379.5 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002073/0.431, allocations: 0.8366 MB / 380.3 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001795/0.4312, allocations: 143.7 kB / 380.4 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003889/0.4316, allocations: 158.9 kB / 380.6 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003174/0.4348, allocations: 1.34 MB / 381.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.099e-05/0.4349, allocations: 12.14 kB / 381.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001508/0.435, allocations: 64.25 kB / 382 MB, free: 7.203 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.909e-05/0.4351, allocations: 35.16 kB / 382 MB, free: 7.203 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002963/0.438, allocations: 1.315 MB / 383.4 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008618/0.4467, allocations: 4.998 MB / 388.4 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002758/0.4495, allocations: 1.94 MB / 390.3 MB, free: 4.391 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001125/0.4506, allocations: 0.5761 MB / 390.9 MB, free: 4.281 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001837/0.4508, allocations: 192.9 kB / 391.1 MB, free: 4.082 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001382/0.4522, allocations: 0.7416 MB / 391.8 MB, free: 3.617 MB / 302.1 MB Notification: Performance of pre-optimization done (n=132): time 4.248e-06/0.4522, allocations: 5.578 kB / 391.8 MB, free: 3.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=166): time 0.01388/0.4661, allocations: 5.718 MB / 397.5 MB, free: 500 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.712e-05/0.4662, allocations: 151.8 kB / 397.7 MB, free: 336 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007979/0.467, allocations: 0.6333 MB / 398.3 MB, free: 15.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001097/0.4672, allocations: 57.67 kB / 398.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005344/0.4677, allocations: 0.5788 MB / 398.9 MB, free: 15.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004636/0.4682, allocations: 0.5436 MB / 399.5 MB, free: 14.91 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.039e-05/0.4683, allocations: 30.41 kB / 399.5 MB, free: 14.88 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002294/0.4685, allocations: 419.2 kB / 399.9 MB, free: 14.49 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.4696, allocations: 0.5168 MB / 400.4 MB, free: 14.24 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/0.4709, allocations: 0.8459 MB / 401.3 MB, free: 13.6 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/0.4722, allocations: 0.6228 MB / 401.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.288e-05/0.4723, allocations: 9.203 kB / 401.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=215) (initialization): time 0.00468/0.477, allocations: 2.038 MB / 404 MB, free: 11.6 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.213e-05/0.477, allocations: 11.95 kB / 404 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.316e-05/0.477, allocations: 8 kB / 404 MB, free: 11.58 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002053/0.4791, allocations: 0.5271 MB / 404.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001336/0.4805, allocations: 299.3 kB / 404.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/0.4914, allocations: 8.643 MB / 413.4 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/0.493, allocations: 87.89 kB / 413.5 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001858/0.4932, allocations: 63.98 kB / 413.6 MB, free: 1.527 MB / 318.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 (161): * Single equations (assignments): 157 * 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.001067/0.4943, allocations: 359.4 kB / 413.9 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002445/0.4945, allocations: 118.5 kB / 414.1 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004583/0.4991, allocations: 1.932 MB / 416 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-05/0.4992, allocations: 19.95 kB / 416 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.454e-05/0.4992, allocations: 8 kB / 416 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.937e-05/0.4992, allocations: 7.969 kB / 416 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007248/0.5065, allocations: 3.566 MB / 419.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/0.5065, allocations: 4 kB / 419.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009964/0.5075, allocations: 217.9 kB / 419.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001952/0.5095, allocations: 0.5004 MB / 420.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001458/0.5097, allocations: 40.27 kB / 420.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009975/0.5196, allocations: 8.341 MB / 428.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.5197, allocations: 3.281 kB / 428.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005984/0.5257, allocations: 2.671 MB / 431.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006838/0.5264, allocations: 295.5 kB / 431.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001735/0.5266, allocations: 39.98 kB / 431.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000738/0.5273, allocations: 67.97 kB / 431.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000354/0.5277, allocations: 140.3 kB / 431.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.5278, allocations: 51.98 kB / 431.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006491/0.5285, allocations: 437.5 kB / 432.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5285, allocations: 4 kB / 432.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001902/0.5304, allocations: 416 kB / 432.8 MB, free: 13.83 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (116): * Single equations (assignments): 106 * 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.006136/0.5365, allocations: 3.314 MB / 436.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004227/0.5408, allocations: 2.099 MB / 438.2 MB, free: 8.387 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.5408, allocations: 0 / 438.2 MB, free: 8.387 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00237/0.5432, allocations: 1.431 MB / 439.6 MB, free: 6.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009721/0.5442, allocations: 132.5 kB / 439.8 MB, free: 6.801 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01509/0.5593, allocations: 7.995 MB / 447.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001026/0.5603, allocations: 1.205 MB / 449 MB, free: 13.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008823/0.5612, allocations: 165 kB / 449.1 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000738/0.562, allocations: 0.5305 MB / 449.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.562, allocations: 0 / 449.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0536/0.6156, allocations: 26.39 MB / 476 MB, free: 2.379 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002182/0.6159, allocations: 239.6 kB / 476.3 MB, free: 2.137 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.038/3.654, allocations: 4.641 kB / 476.3 MB, free: 2.137 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat does not exist to compare? outputFormat=mat