Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001766/0.001766, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002121/0.00212, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2371/0.2371, allocations: 46.11 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Warning: Requested package Modelica 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.002151/0.002152, allocations: 79.86 kB / 480.9 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2952, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.003073/0.2983, allocations: 1.733 MB / 0.5323 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001735/0.2985, allocations: 78.14 kB / 0.5323 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.308e-05/0.2986, allocations: 5.594 kB / 0.5324 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.56e-05/0.2986, allocations: 17.33 kB / 0.5324 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.278e-05/0.2987, allocations: 22.44 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.878e-05/0.2988, allocations: 26.62 kB / 0.5324 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001594/0.299, allocations: 110.7 kB / 0.5325 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.2992, allocations: 55.11 kB / 0.5326 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.306e-05/0.2993, allocations: 39.33 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.973e-05/0.2994, allocations: 56.17 kB / 0.5327 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.757e-05/0.2994, allocations: 11.12 kB / 0.5327 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.055e-05/0.2994, allocations: 11 kB / 0.5327 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.149e-05/0.2995, allocations: 22.61 kB / 0.5327 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.815e-05/0.2995, allocations: 54.72 kB / 0.5328 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001785/0.2997, allocations: 112.9 kB / 0.5329 GB, free: 11.6 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.2997, allocations: 0 / 0.5329 GB, free: 11.6 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.2997, allocations: 0 / 0.5329 GB, free: 11.6 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.2998, allocations: 1.281 kB / 0.5329 GB, free: 11.6 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0006737/0.3004, allocations: 423.6 kB / 0.5333 GB, free: 11.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.3005, allocations: 9.5 kB / 0.5333 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.132e-05/0.3005, allocations: 50.14 kB / 0.5333 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.841e-05/0.3006, allocations: 10.89 kB / 0.5333 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.3007, allocations: 175.8 kB / 0.5335 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.275e-05/0.3008, allocations: 8.25 kB / 0.5335 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.3008, allocations: 10.84 kB / 0.5335 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003178/0.3011, allocations: 131.7 kB / 0.5337 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.3011, allocations: 3.938 kB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.3011, allocations: 7.984 kB / 0.5337 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.3011, allocations: 4.094 kB / 0.5337 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003434/0.3015, allocations: 104.2 kB / 0.5338 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007275/0.3022, allocations: 477 kB / 0.5342 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002414/0.3025, allocations: 81.03 kB / 0.5343 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002339/0.3027, allocations: 69.92 kB / 0.5344 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.14e-05/0.3027, allocations: 1.375 kB / 0.5344 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.3028, allocations: 34.5 kB / 0.5344 GB, free: 10.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.3028, allocations: 0 / 0.5344 GB, free: 10.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008231/0.3036, allocations: 272.8 kB / 0.5347 GB, free: 9.965 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/0.3037, allocations: 52.78 kB / 0.5347 GB, free: 9.902 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.3038, allocations: 120.9 kB / 0.5348 GB, free: 9.789 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.3038, allocations: 27.08 kB / 0.5349 GB, free: 9.758 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.983e-05/0.3039, allocations: 108.3 kB / 0.535 GB, free: 9.648 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.3039, allocations: 22.53 kB / 0.535 GB, free: 9.629 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.507e-05/0.304, allocations: 23.22 kB / 0.535 GB, free: 9.605 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.3041, allocations: 320.2 kB / 0.5353 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.3043, allocations: 32.59 kB / 0.5353 GB, free: 9.273 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001703/0.3045, allocations: 64.53 kB / 0.5354 GB, free: 9.223 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003015/0.3048, allocations: 102.4 kB / 0.5355 GB, free: 9.156 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3048, allocations: 0 / 0.5355 GB, free: 9.156 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004045/0.3052, allocations: 150.8 kB / 0.5356 GB, free: 9.059 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.3052, allocations: 8 kB / 0.5356 GB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.3052, allocations: 1.375 kB / 0.5356 GB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001301/0.3054, allocations: 22.47 kB / 0.5357 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.3055, allocations: 17.33 kB / 0.5357 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/0.3066, allocations: 1.404 MB / 0.5371 GB, free: 7.582 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.3067, allocations: 15.64 kB / 0.5371 GB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.3068, allocations: 6.719 kB / 0.5371 GB, free: 7.57 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.612e-05/0.3069, allocations: 122.7 kB / 0.5372 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.989e-05/0.3069, allocations: 14.52 kB / 0.5372 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.894e-05/0.3069, allocations: 13.56 kB / 0.5372 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.3069, allocations: 1.312 kB / 0.5372 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3069, allocations: 1.031 kB / 0.5372 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.3069, allocations: 0 / 0.5372 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006729/0.3076, allocations: 427.4 kB / 0.5376 GB, free: 7.016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.3076, allocations: 5.094 kB / 0.5376 GB, free: 7.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.998e-05/0.3077, allocations: 21.97 kB / 0.5377 GB, free: 7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.626e-05/0.3078, allocations: 24.16 kB / 0.5377 GB, free: 6.984 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.226e-06/0.3078, allocations: 4.031 kB / 0.5377 GB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001039/0.3089, allocations: 1.4 MB / 0.539 GB, free: 5.523 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.3089, allocations: 9.328 kB / 0.5391 GB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004408/0.3093, allocations: 237.9 kB / 0.5393 GB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.811e-05/0.3094, allocations: 83.84 kB / 0.5394 GB, free: 5.219 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.069e-05/0.3094, allocations: 5.438 kB / 0.5394 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.3095, allocations: 10.08 kB / 0.5394 GB, free: 5.211 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.579e-05/0.3096, allocations: 16.02 kB / 0.5394 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.3096, allocations: 1.438 kB / 0.5394 GB, free: 5.199 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.045e-05/0.3097, allocations: 97.33 kB / 0.5395 GB, free: 5.113 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3097, allocations: 0 / 0.5395 GB, free: 5.113 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002565/0.3099, allocations: 30.77 kB / 0.5395 GB, free: 5.102 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0007402/0.3107, allocations: 0.7606 MB / 0.5403 GB, free: 4.379 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005035/0.3112, allocations: 206.3 kB / 0.5405 GB, free: 4.219 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.3112, allocations: 0 / 0.5405 GB, free: 4.219 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002533/0.3115, allocations: 167 kB / 0.5406 GB, free: 4.074 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/0.3118, allocations: 23.42 kB / 0.5406 GB, free: 4.055 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002088/0.3139, allocations: 1.596 MB / 0.5422 GB, free: 2.602 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.3142, allocations: 0.7018 MB / 0.5429 GB, free: 1.891 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.213e-05/0.3142, allocations: 8.812 kB / 0.5429 GB, free: 1.883 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.906e-05/0.3143, allocations: 25.73 kB / 0.5429 GB, free: 1.859 MB / 398.1 MB Notification: Performance of SimCode: time 1.215e-05/0.3143, allocations: 1.188 kB / 0.5429 GB, free: 1.859 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02659/0.3409, allocations: 2.383 MB / 0.5452 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.701/9.042, allocations: 9.984 kB / 0.5453 GB, free: 0.6016 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe 2>&1)