Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001309/0.00131, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001344/0.001345, allocations: 208.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.449/1.449, allocations: 227.7 MB / 247 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001939/0.00194, allocations: 68.06 kB / 307.4 MB, free: 376 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1022, allocations: 50.53 MB / 357.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.007891/0.1102, allocations: 5.084 MB / 363 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004323/0.1145, allocations: 2.144 MB / 365.1 MB, free: 6.555 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004004/0.115, allocations: 16 kB / 365.1 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00338/0.1184, allocations: 1.4 MB / 366.5 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001282/0.1197, allocations: 425.3 kB / 366.9 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002402/0.1221, allocations: 1.207 MB / 368.2 MB, free: 3.512 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001112/0.1233, allocations: 0.7394 MB / 368.9 MB, free: 2.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001087/0.1244, allocations: 0.6613 MB / 369.6 MB, free: 2.094 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005178/0.1249, allocations: 330.8 kB / 369.9 MB, free: 1.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000534/0.1254, allocations: 434.3 kB / 370.3 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.1256, allocations: 68 kB / 370.4 MB, free: 1.277 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001067/0.1266, allocations: 423.6 kB / 370.8 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001651/0.1268, allocations: 163.4 kB / 370.9 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004051/0.1272, allocations: 386.1 kB / 371.3 MB, free: 332 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1649/0.2921, allocations: 1.193 MB / 372.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.897e-06/0.2922, allocations: 4.469 kB / 372.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2922, allocations: 0 / 372.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.834e-05/0.2922, allocations: 0 / 372.5 MB, free: 11.68 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004746/0.297, allocations: 1.465 MB / 374 MB, free: 11.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.297, allocations: 9.5 kB / 374 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001514/0.2972, allocations: 134.8 kB / 374.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002596/0.2998, allocations: 384.2 kB / 374.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002805/0.3001, allocations: 265.1 kB / 374.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.885e-05/0.3001, allocations: 64.59 kB / 374.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001553/0.3003, allocations: 84.38 kB / 374.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/0.302, allocations: 0.8778 MB / 375.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.812e-05/0.3021, allocations: 1.25 kB / 375.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.418e-05/0.3022, allocations: 34.5 kB / 375.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.086e-05/0.3022, allocations: 20.62 kB / 375.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001743/0.3039, allocations: 0.8 MB / 376.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004157/0.3081, allocations: 3.041 MB / 379.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.3093, allocations: 1.005 MB / 380.7 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005412/0.3099, allocations: 244 kB / 380.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001294/0.31, allocations: 175 kB / 381.1 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.3101, allocations: 38.64 kB / 381.1 MB, free: 8.246 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.585e-06/0.3101, allocations: 0 / 381.1 MB, free: 8.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.007747/0.3178, allocations: 2.4 MB / 383.5 MB, free: 7.168 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.3179, allocations: 85.31 kB / 383.6 MB, free: 7.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004722/0.3184, allocations: 318.2 kB / 383.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.405e-05/0.3184, allocations: 36.14 kB / 384 MB, free: 6.855 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002143/0.3187, allocations: 364.4 kB / 384.3 MB, free: 6.566 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000151/0.3188, allocations: 204.8 kB / 384.5 MB, free: 6.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002357/0.3191, allocations: 151.2 kB / 384.7 MB, free: 6.328 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.072e-05/0.3192, allocations: 353.1 kB / 385 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007244/0.3199, allocations: 267.8 kB / 385.3 MB, free: 5.922 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008067/0.3207, allocations: 0.5128 MB / 385.8 MB, free: 5.531 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/0.3223, allocations: 0.8065 MB / 386.6 MB, free: 5.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.3223, allocations: 5.047 kB / 386.6 MB, free: 5.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002185/0.3245, allocations: 0.8952 MB / 387.5 MB, free: 4.727 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.3245, allocations: 8.812 kB / 387.5 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.3246, allocations: 18.61 kB / 387.5 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002638/0.3248, allocations: 65.5 kB / 387.6 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008418/0.3257, allocations: 208.5 kB / 387.8 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001459/0.3272, allocations: 2.869 MB / 390.6 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007357/0.3279, allocations: 60.69 kB / 390.7 MB, free: 1.801 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.163e-05/0.328, allocations: 39.42 kB / 390.7 MB, free: 1.793 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003282/0.3283, allocations: 214.9 kB / 391 MB, free: 1.617 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.683e-05/0.3284, allocations: 45.59 kB / 391 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001831/0.3303, allocations: 0.7342 MB / 391.7 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.3303, allocations: 5.75 kB / 391.7 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3303, allocations: 5.203 kB / 391.7 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.3303, allocations: 1.5 kB / 391.7 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002621/0.3329, allocations: 1.425 MB / 393.2 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.3329, allocations: 0 / 393.2 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006213/0.3336, allocations: 130.1 kB / 393.3 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001876/0.3338, allocations: 59.89 kB / 393.4 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.78e-05/0.3338, allocations: 15.38 kB / 393.4 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002336/0.3362, allocations: 2.853 MB / 396.2 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.3362, allocations: 4.406 kB / 396.2 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002645/0.3388, allocations: 1.083 MB / 397.3 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003026/0.3392, allocations: 163.7 kB / 397.5 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.516e-05/0.3392, allocations: 10.75 kB / 397.5 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000497/0.3397, allocations: 49.08 kB / 397.5 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.3399, allocations: 49.77 kB / 397.6 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-05/0.3399, allocations: 24.23 kB / 397.6 MB, free: 13.02 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003049/0.3402, allocations: 214.5 kB / 397.8 MB, free: 12.9 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3403, allocations: 0 / 397.8 MB, free: 12.9 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009725/0.3412, allocations: 186.2 kB / 398 MB, free: 12.87 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003434/0.3447, allocations: 1.68 MB / 399.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00251/0.3472, allocations: 0.9322 MB / 400.6 MB, free: 11.18 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.3472, allocations: 0 / 400.6 MB, free: 11.18 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.3483, allocations: 0.5488 MB / 401.2 MB, free: 10.82 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006289/0.349, allocations: 46.92 kB / 401.2 MB, free: 10.79 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009305/0.3583, allocations: 5.245 MB / 406.4 MB, free: 7.098 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005333/0.3588, allocations: 0.8815 MB / 407.3 MB, free: 6.316 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004806/0.3593, allocations: 92.75 kB / 407.4 MB, free: 6.227 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003412/0.3597, allocations: 219.3 kB / 407.6 MB, free: 6.016 MB / 318.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3597, allocations: 0 / 407.6 MB, free: 6.016 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04399/0.4037, allocations: 11.17 MB / 418.8 MB, free: 11.1 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.45, allocations: 16.45 kB / 418.8 MB, free: 11.09 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1)