Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.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.Sensors,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001373/0.001373, allocations: 117.2 kB / 17.78 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001512/0.001512, allocations: 200.6 kB / 18.73 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 247 MB, free: 10.47 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.2469/0.2469, allocations: 46.12 MB / 344.3 MB, free: 11.5 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.002263/0.002263, allocations: 83.86 kB / 480.9 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2961, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sensors): time 0.003716/0.2998, allocations: 1.932 MB / 0.5325 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.3009, allocations: 0.6038 MB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.528e-05/0.301, allocations: 3.219 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001711/0.3012, allocations: 35.44 kB / 0.5331 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001205/0.3014, allocations: 38.05 kB / 0.5331 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001809/0.3016, allocations: 46.19 kB / 0.5332 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002037/0.3018, allocations: 146.9 kB / 0.5333 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.3019, allocations: 59.64 kB / 0.5334 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.3021, allocations: 53.8 kB / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.3022, allocations: 72.17 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.307e-05/0.3022, allocations: 13.75 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.142e-05/0.3023, allocations: 17.75 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.5e-05/0.3023, allocations: 26.67 kB / 0.5335 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.591e-05/0.3024, allocations: 71.89 kB / 0.5336 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002587/0.3027, allocations: 158.2 kB / 0.5338 GB, free: 10.89 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3027, allocations: 1.094 kB / 0.5338 GB, free: 10.89 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3027, allocations: 0 / 0.5338 GB, free: 10.89 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.451e-06/0.3027, allocations: 0 / 0.5338 GB, free: 10.89 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0007666/0.3035, allocations: 456.4 kB / 0.5342 GB, free: 10.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.3035, allocations: 9.406 kB / 0.5342 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.664e-05/0.3036, allocations: 46.11 kB / 0.5343 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.498e-05/0.3037, allocations: 16.69 kB / 0.5343 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003186/0.304, allocations: 209.9 kB / 0.5345 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.304, allocations: 14 kB / 0.5345 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.038e-05/0.304, allocations: 12.97 kB / 0.5345 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003144/0.3044, allocations: 140.8 kB / 0.5346 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.3044, allocations: 0 / 0.5346 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.774e-05/0.3044, allocations: 13.28 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.3044, allocations: 3.438 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002852/0.3047, allocations: 105.3 kB / 0.5347 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.3057, allocations: 0.6014 MB / 0.5353 GB, free: 9.438 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002647/0.306, allocations: 78.42 kB / 0.5354 GB, free: 9.383 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.3061, allocations: 34.38 kB / 0.5354 GB, free: 9.359 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.3062, allocations: 1.438 kB / 0.5354 GB, free: 9.359 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.3062, allocations: 31.56 kB / 0.5355 GB, free: 9.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.302e-06/0.3062, allocations: 0 / 0.5355 GB, free: 9.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0004031/0.3066, allocations: 111.2 kB / 0.5356 GB, free: 9.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.3067, allocations: 52.78 kB / 0.5356 GB, free: 9.188 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001477/0.3068, allocations: 155.2 kB / 0.5358 GB, free: 9.047 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.3069, allocations: 27.08 kB / 0.5358 GB, free: 9.016 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.823e-05/0.307, allocations: 143.9 kB / 0.5359 GB, free: 8.879 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.863e-05/0.307, allocations: 18.59 kB / 0.536 GB, free: 8.863 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.81e-05/0.307, allocations: 32.53 kB / 0.536 GB, free: 8.832 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.3072, allocations: 317.6 kB / 0.5363 GB, free: 8.516 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.3073, allocations: 31.09 kB / 0.5363 GB, free: 8.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.3074, allocations: 59.52 kB / 0.5364 GB, free: 8.445 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.3077, allocations: 95.94 kB / 0.5365 GB, free: 8.371 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3077, allocations: 0 / 0.5365 GB, free: 8.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002931/0.308, allocations: 127.3 kB / 0.5366 GB, free: 8.293 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.308, allocations: 5.656 kB / 0.5366 GB, free: 8.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.308, allocations: 1 kB / 0.5366 GB, free: 8.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.308, allocations: 9.875 kB / 0.5366 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.3082, allocations: 28.56 kB / 0.5366 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.3082, allocations: 1.156 kB / 0.5366 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.365e-05/0.3083, allocations: 10.64 kB / 0.5366 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.257e-06/0.3083, allocations: 3.344 kB / 0.5366 GB, free: 8.273 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001076/0.3084, allocations: 132.3 kB / 0.5368 GB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.912e-05/0.3085, allocations: 8.328 kB / 0.5368 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.38e-05/0.3085, allocations: 14.42 kB / 0.5368 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.3085, allocations: 5.094 kB / 0.5368 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3085, allocations: 0 / 0.5368 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.3085, allocations: 0 / 0.5368 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002389/0.3088, allocations: 215.1 kB / 0.537 GB, free: 7.883 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3088, allocations: 0 / 0.537 GB, free: 7.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.741e-05/0.3089, allocations: 16.05 kB / 0.537 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3089, allocations: 9.031 kB / 0.537 GB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.3089, allocations: 4 kB / 0.537 GB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.3089, allocations: 5.156 kB / 0.537 GB, free: 7.863 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3089, allocations: 256 / 0.537 GB, free: 7.863 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002928/0.3092, allocations: 186.8 kB / 0.5372 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.308e-05/0.3093, allocations: 83.5 kB / 0.5373 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.3093, allocations: 3.984 kB / 0.5373 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.67e-05/0.3094, allocations: 16.31 kB / 0.5373 GB, free: 7.586 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.444e-05/0.3094, allocations: 6.578 kB / 0.5373 GB, free: 7.582 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.588e-06/0.3095, allocations: 1.125 kB / 0.5373 GB, free: 7.582 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.151e-05/0.3095, allocations: 113.5 kB / 0.5374 GB, free: 7.492 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3096, allocations: 0 / 0.5374 GB, free: 7.492 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002535/0.3098, allocations: 24.73 kB / 0.5375 GB, free: 7.488 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005834/0.3104, allocations: 0.7245 MB / 0.5382 GB, free: 6.785 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002505/0.3107, allocations: 68.64 kB / 0.5382 GB, free: 6.758 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3107, allocations: 0 / 0.5382 GB, free: 6.758 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.762e-05/0.3108, allocations: 33.28 kB / 0.5383 GB, free: 6.742 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002525/0.311, allocations: 11.19 kB / 0.5383 GB, free: 6.734 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001978/0.313, allocations: 1.645 MB / 0.5399 GB, free: 5.266 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.3134, allocations: 0.7099 MB / 0.5406 GB, free: 4.551 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.342e-05/0.3134, allocations: 7.812 kB / 0.5406 GB, free: 4.547 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.564e-05/0.3135, allocations: 35.7 kB / 0.5406 GB, free: 4.516 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3135, allocations: 0 / 0.5406 GB, free: 4.516 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02224/0.3357, allocations: 2.172 MB / 0.5427 GB, free: 3.348 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.22/7.556, allocations: 10.98 kB / 0.5427 GB, free: 3.34 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sensors.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe 2>&1)