Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.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.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_QuasiStatic_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.001687/0.001687, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001986/0.001986, allocations: 202 kB / 18.73 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.43/1.43, allocations: 227.4 MB / 247 MB, free: 10.44 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.2148/0.2148, allocations: 46.12 MB / 344.4 MB, free: 11.45 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.002275/0.002275, allocations: 79.86 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2881, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.003528/0.2916, allocations: 2.486 MB / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001693/0.2933, allocations: 1.103 MB / 0.5341 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.927e-05/0.2935, allocations: 4.531 kB / 0.5341 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001228/0.2947, allocations: 0.5 MB / 0.5346 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002621/0.295, allocations: 110.6 kB / 0.5347 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008719/0.2959, allocations: 487.1 kB / 0.5352 GB, free: 9.727 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002915/0.2962, allocations: 225.8 kB / 0.5354 GB, free: 9.594 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000415/0.2966, allocations: 251.9 kB / 0.5356 GB, free: 9.445 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00018/0.2968, allocations: 100.5 kB / 0.5357 GB, free: 9.387 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001672/0.2969, allocations: 120.6 kB / 0.5358 GB, free: 9.309 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.625e-05/0.297, allocations: 21.53 kB / 0.5358 GB, free: 9.309 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002991/0.2973, allocations: 161.6 kB / 0.536 GB, free: 9.238 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.903e-05/0.2974, allocations: 47.72 kB / 0.536 GB, free: 9.199 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001194/0.2975, allocations: 116.6 kB / 0.5361 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005189/0.298, allocations: 408.6 kB / 0.5365 GB, free: 8.832 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.298, allocations: 3.938 kB / 0.5365 GB, free: 8.828 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.298, allocations: 0 / 0.5365 GB, free: 8.828 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.573e-06/0.298, allocations: 0 / 0.5365 GB, free: 8.828 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001277/0.2993, allocations: 0.6186 MB / 0.5371 GB, free: 8.285 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.2994, allocations: 14.72 kB / 0.5372 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.113e-05/0.2995, allocations: 62.06 kB / 0.5372 GB, free: 8.219 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000309/0.2998, allocations: 49.55 kB / 0.5373 GB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001514/0.2999, allocations: 191 kB / 0.5374 GB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.3, allocations: 18.5 kB / 0.5375 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.263e-05/0.3, allocations: 24.19 kB / 0.5375 GB, free: 7.961 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005616/0.3006, allocations: 300 kB / 0.5378 GB, free: 7.762 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.3006, allocations: 4.938 kB / 0.5378 GB, free: 7.758 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.422e-05/0.3006, allocations: 10.16 kB / 0.5378 GB, free: 7.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.3006, allocations: 10.38 kB / 0.5378 GB, free: 7.746 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005551/0.3012, allocations: 226.7 kB / 0.538 GB, free: 7.645 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.3027, allocations: 1.006 MB / 0.539 GB, free: 6.766 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005309/0.3032, allocations: 378.7 kB / 0.5394 GB, free: 6.434 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003378/0.3036, allocations: 145.2 kB / 0.5395 GB, free: 6.352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000171/0.3037, allocations: 166 kB / 0.5397 GB, free: 6.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.3038, allocations: 31.97 kB / 0.5397 GB, free: 6.121 MB / 398.1 MB Notification: Performance of pre-optimization done (n=19): time 1.403e-06/0.3038, allocations: 1.375 kB / 0.5397 GB, free: 6.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001175/0.305, allocations: 0.4982 MB / 0.5402 GB, free: 5.738 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.305, allocations: 88.14 kB / 0.5403 GB, free: 5.637 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.3052, allocations: 133.5 kB / 0.5404 GB, free: 5.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.229e-05/0.3052, allocations: 30.73 kB / 0.5404 GB, free: 5.484 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.3053, allocations: 150.1 kB / 0.5406 GB, free: 5.344 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.569e-05/0.3054, allocations: 71.31 kB / 0.5406 GB, free: 5.281 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.608e-05/0.3054, allocations: 44.2 kB / 0.5407 GB, free: 5.246 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.3056, allocations: 320.5 kB / 0.541 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002109/0.3058, allocations: 73.61 kB / 0.541 GB, free: 4.891 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/0.306, allocations: 117.3 kB / 0.5412 GB, free: 4.801 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004567/0.3065, allocations: 213.4 kB / 0.5414 GB, free: 4.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3065, allocations: 5.188 kB / 0.5414 GB, free: 4.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006282/0.3072, allocations: 275.8 kB / 0.5416 GB, free: 4.492 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.3072, allocations: 8.844 kB / 0.5416 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.3072, allocations: 6.203 kB / 0.5416 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001845/0.3074, allocations: 48.48 kB / 0.5417 GB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.3076, allocations: 50.17 kB / 0.5417 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002122/0.3097, allocations: 2.833 MB / 0.5445 GB, free: 1.504 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001572/0.3099, allocations: 35.64 kB / 0.5445 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.712e-05/0.3099, allocations: 9.375 kB / 0.5445 GB, free: 1.477 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 17 * 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.0001392/0.3101, allocations: 144.9 kB / 0.5447 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.179e-05/0.3101, allocations: 10.73 kB / 0.5447 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006487/0.3108, allocations: 272.5 kB / 0.545 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-06/0.3108, allocations: 3.5 kB / 0.545 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.3108, allocations: 5.125 kB / 0.545 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.3108, allocations: 0 / 0.545 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.3119, allocations: 0.6493 MB / 0.5456 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3119, allocations: 5.5 kB / 0.5456 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001694/0.3121, allocations: 33.34 kB / 0.5456 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001235/0.3122, allocations: 51.27 kB / 0.5457 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.3123, allocations: 6.031 kB / 0.5457 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002083/0.3144, allocations: 2.839 MB / 0.5485 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3144, allocations: 1.094 kB / 0.5485 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009534/0.3153, allocations: 0.5223 MB / 0.549 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.781e-05/0.3154, allocations: 85.22 kB / 0.5491 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.484e-05/0.3154, allocations: 10.5 kB / 0.5491 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000183/0.3156, allocations: 24.41 kB / 0.5491 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.998e-05/0.3157, allocations: 19.83 kB / 0.5491 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.3157, allocations: 9.625 kB / 0.5491 GB, free: 13.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.3e-05/0.3158, allocations: 109.3 kB / 0.5492 GB, free: 12.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3158, allocations: 0 / 0.5492 GB, free: 12.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004039/0.3162, allocations: 76.41 kB / 0.5493 GB, free: 12.96 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (magFluxSource.port_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 (15): * Single equations (assignments): 13 * 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.001358/0.3175, allocations: 1.08 MB / 0.5503 GB, free: 12.03 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000757/0.3183, allocations: 420.6 kB / 0.5507 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3183, allocations: 0 / 0.5507 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004257/0.3188, allocations: 340.5 kB / 0.5511 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003891/0.3192, allocations: 16.66 kB / 0.5511 GB, free: 11.4 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003232/0.3224, allocations: 2.36 MB / 0.5534 GB, free: 8.992 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003761/0.3228, allocations: 0.7321 MB / 0.5541 GB, free: 8.234 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.121e-05/0.3229, allocations: 13.44 kB / 0.5541 GB, free: 8.223 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.887e-05/0.323, allocations: 59.41 kB / 0.5542 GB, free: 8.164 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.323, allocations: 0 / 0.5542 GB, free: 8.164 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03284/0.3558, allocations: 4.394 MB / 0.5585 GB, free: 3.941 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.796/9.151, allocations: 7.281 kB / 0.5585 GB, free: 3.938 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.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_QuasiStatic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1)