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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009355/0.0009353, allocations: 97.34 kB / 16.96 MB, free: 6.453 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.001171/0.001171, allocations: 180.3 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.531/1.531, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004771/0.0004775, allocations: 12 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1066, allocations: 47.58 MB / 328.5 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.007497/0.1142, allocations: 6.715 MB / 335.2 MB, free: 13.24 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005129/0.1193, allocations: 2.739 MB / 337.9 MB, free: 10.49 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006428/0.12, allocations: 31.88 kB / 337.9 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007258/0.1208, allocations: 314.2 kB / 338.3 MB, free: 10.15 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001588/0.1224, allocations: 0.6529 MB / 338.9 MB, free: 9.492 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002027/0.1244, allocations: 0.9974 MB / 339.9 MB, free: 8.492 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001746/0.1261, allocations: 1.503 MB / 341.4 MB, free: 6.984 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002508/0.1287, allocations: 1.436 MB / 342.8 MB, free: 5.492 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007917/0.1295, allocations: 0.5135 MB / 343.4 MB, free: 4.977 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007729/0.1303, allocations: 0.6455 MB / 344 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001238/0.1304, allocations: 64 kB / 344.1 MB, free: 4.266 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009215/0.1313, allocations: 359.7 kB / 344.4 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002308/0.1316, allocations: 254.8 kB / 344.7 MB, free: 3.664 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002974/0.1319, allocations: 289 kB / 344.9 MB, free: 3.375 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001566/0.1334, allocations: 1.683 MB / 346.6 MB, free: 1.688 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1335, allocations: 3.938 kB / 346.6 MB, free: 1.684 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.1335, allocations: 0 / 346.6 MB, free: 1.684 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.122e-05/0.1335, allocations: 4 kB / 346.6 MB, free: 1.68 MB / 286.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.004605/0.1381, allocations: 1.88 MB / 348.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.1382, allocations: 12.03 kB / 348.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000328/0.1385, allocations: 226.3 kB / 348.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003728/0.1422, allocations: 0.6265 MB / 349.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001808/0.1441, allocations: 0.8284 MB / 350.2 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001555/0.1442, allocations: 140.7 kB / 350.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002408/0.1445, allocations: 159.9 kB / 350.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002641/0.1471, allocations: 1.366 MB / 351.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.29e-05/0.1472, allocations: 11.94 kB / 351.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001262/0.1473, allocations: 59.98 kB / 351.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.097e-05/0.1474, allocations: 36 kB / 352 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002595/0.15, allocations: 1.374 MB / 353.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007656/0.1576, allocations: 5.023 MB / 358.4 MB, free: 5.551 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003233/0.1609, allocations: 2.446 MB / 360.8 MB, free: 2.848 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001077/0.162, allocations: 0.5792 MB / 361.4 MB, free: 2.266 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002204/0.1622, allocations: 110.4 kB / 361.5 MB, free: 2.141 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001492/0.1637, allocations: 0.7492 MB / 362.2 MB, free: 1.363 MB / 302.1 MB Notification: Performance of pre-optimization done (n=134): time 2.976e-06/0.1637, allocations: 0 / 362.2 MB, free: 1.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=168): time 0.01406/0.1778, allocations: 5.636 MB / 367.9 MB, free: 11.61 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.786e-05/0.178, allocations: 154.5 kB / 368 MB, free: 11.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008066/0.1788, allocations: 0.6173 MB / 368.6 MB, free: 10.81 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.378e-05/0.1789, allocations: 61.7 kB / 368.7 MB, free: 10.74 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004842/0.1794, allocations: 0.5779 MB / 369.3 MB, free: 10.15 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004326/0.1798, allocations: 0.5506 MB / 369.8 MB, free: 9.594 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.606e-05/0.1799, allocations: 39.94 kB / 369.9 MB, free: 9.555 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001966/0.1801, allocations: 414.7 kB / 370.3 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00104/0.1811, allocations: 0.5232 MB / 370.8 MB, free: 8.617 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001315/0.1825, allocations: 0.8923 MB / 371.7 MB, free: 7.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001216/0.1837, allocations: 0.6377 MB / 372.3 MB, free: 6.953 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.1837, allocations: 0 / 372.3 MB, free: 6.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004365/0.1881, allocations: 2.082 MB / 374.4 MB, free: 4.848 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/0.1881, allocations: 11.95 kB / 374.4 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.451e-05/0.1882, allocations: 8 kB / 374.4 MB, free: 4.828 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00203/0.1902, allocations: 0.5379 MB / 375 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/0.1915, allocations: 315.5 kB / 375.3 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2494/0.4408, allocations: 8.626 MB / 383.9 MB, free: 45.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/0.4422, allocations: 86.64 kB / 384 MB, free: 45.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002974/0.4425, allocations: 70.61 kB / 384.1 MB, free: 45.84 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * 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.0008013/0.4433, allocations: 353.8 kB / 384.4 MB, free: 45.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002432/0.4436, allocations: 114.4 kB / 384.5 MB, free: 45.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004469/0.448, allocations: 1.936 MB / 386.5 MB, free: 45.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-05/0.4481, allocations: 17.62 kB / 386.5 MB, free: 45.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.903e-05/0.4481, allocations: 14.64 kB / 386.5 MB, free: 45.41 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.538e-05/0.4482, allocations: 11.61 kB / 386.5 MB, free: 45.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007759/0.4559, allocations: 3.568 MB / 390.1 MB, free: 43.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.456, allocations: 10.55 kB / 390.1 MB, free: 43.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.457, allocations: 217.6 kB / 390.3 MB, free: 43.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002106/0.4591, allocations: 0.5026 MB / 390.8 MB, free: 43.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001655/0.4593, allocations: 40.05 kB / 390.8 MB, free: 43.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008407/0.4677, allocations: 8.343 MB / 399.2 MB, free: 36.85 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.4678, allocations: 3.938 kB / 399.2 MB, free: 36.85 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005849/0.4736, allocations: 2.691 MB / 401.9 MB, free: 35.62 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006859/0.4744, allocations: 297.1 kB / 402.2 MB, free: 35.4 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003104/0.4747, allocations: 34.78 kB / 402.2 MB, free: 35.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009146/0.4756, allocations: 71.16 kB / 402.3 MB, free: 35.35 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003776/0.476, allocations: 137 kB / 402.4 MB, free: 35.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/0.4762, allocations: 50.42 kB / 402.4 MB, free: 35.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007404/0.4769, allocations: 421.1 kB / 402.9 MB, free: 35.12 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4769, allocations: 0 / 402.9 MB, free: 35.12 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002291/0.4792, allocations: 426.2 kB / 403.3 MB, free: 35.05 MB / 318.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,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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * 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.005676/0.4849, allocations: 3.337 MB / 406.6 MB, free: 33.24 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003801/0.4887, allocations: 2.12 MB / 408.7 MB, free: 32.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.208e-06/0.4888, allocations: 4 kB / 408.7 MB, free: 32.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00236/0.4911, allocations: 1.422 MB / 410.2 MB, free: 31.32 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/0.4925, allocations: 137.7 kB / 410.3 MB, free: 31.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01486/0.5074, allocations: 7.936 MB / 418.2 MB, free: 23.06 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000759/0.5082, allocations: 1.2 MB / 419.4 MB, free: 21.84 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008626/0.5091, allocations: 165.1 kB / 419.6 MB, free: 21.67 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006442/0.5098, allocations: 0.5227 MB / 420.1 MB, free: 21.15 MB / 318.1 MB Notification: Performance of SimCode: time 9.31e-07/0.5098, allocations: 7.938 kB / 420.1 MB, free: 21.14 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04971/0.5595, allocations: 26.14 MB / 446.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001949/0.5598, allocations: 243.4 kB / 446.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.872/3.432, allocations: 0 / 446.5 MB, free: 10.71 MB / 334.1 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) Environment - environmentSimulation: 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