Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.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.Sources,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001279/0.001279, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, 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.2258/0.2258, 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.002304/0.002304, allocations: 75.86 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.308, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.00396/0.312, allocations: 2.682 MB / 0.5332 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00136/0.3134, allocations: 0.7875 MB / 0.534 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.3135, allocations: 9.625 kB / 0.534 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002237/0.3138, allocations: 72.92 kB / 0.5341 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002447/0.314, allocations: 103.9 kB / 0.5342 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002769/0.3143, allocations: 110.5 kB / 0.5343 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004263/0.3148, allocations: 422.1 kB / 0.5347 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000239/0.315, allocations: 150 kB / 0.5348 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.3152, allocations: 145.2 kB / 0.5349 GB, free: 9.953 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002009/0.3154, allocations: 172.5 kB / 0.5351 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.173e-05/0.3155, allocations: 34.38 kB / 0.5351 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.57e-05/0.3155, allocations: 33 kB / 0.5352 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.638e-05/0.3156, allocations: 77.33 kB / 0.5353 GB, free: 9.762 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001784/0.3158, allocations: 191.2 kB / 0.5354 GB, free: 9.625 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004693/0.3163, allocations: 424.3 kB / 0.5358 GB, free: 9.309 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3163, allocations: 7.938 kB / 0.5358 GB, free: 9.301 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3163, allocations: 0 / 0.5358 GB, free: 9.301 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.074e-06/0.3163, allocations: 1.625 kB / 0.5358 GB, free: 9.301 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001137/0.3175, allocations: 0.6765 MB / 0.5365 GB, free: 8.707 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.3175, allocations: 13.16 kB / 0.5365 GB, free: 8.703 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.306e-05/0.3176, allocations: 70.16 kB / 0.5366 GB, free: 8.637 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.005e-05/0.3177, allocations: 41.02 kB / 0.5366 GB, free: 8.617 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003916/0.3181, allocations: 285.7 kB / 0.5369 GB, free: 8.328 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.087e-05/0.3181, allocations: 29.81 kB / 0.5369 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.305e-05/0.3182, allocations: 30.69 kB / 0.537 GB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006954/0.3189, allocations: 365.1 kB / 0.5373 GB, free: 8.066 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.3189, allocations: 9 kB / 0.5373 GB, free: 8.059 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/0.3189, allocations: 11.66 kB / 0.5373 GB, free: 8.051 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.3189, allocations: 7.625 kB / 0.5373 GB, free: 8.051 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006503/0.3196, allocations: 263.8 kB / 0.5376 GB, free: 7.934 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002126/0.3217, allocations: 1.344 MB / 0.5389 GB, free: 6.758 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005148/0.3223, allocations: 198 kB / 0.5391 GB, free: 6.605 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/0.3225, allocations: 84 kB / 0.5392 GB, free: 6.543 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.708e-05/0.3225, allocations: 2.156 kB / 0.5392 GB, free: 6.543 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.417e-05/0.3226, allocations: 40.64 kB / 0.5392 GB, free: 6.496 MB / 398.1 MB Notification: Performance of pre-optimization done (n=15): time 1.833e-06/0.3226, allocations: 1.031 kB / 0.5392 GB, free: 6.496 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008289/0.3234, allocations: 250.8 kB / 0.5394 GB, free: 6.359 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.848e-05/0.3235, allocations: 135.6 kB / 0.5396 GB, free: 6.199 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003848/0.3239, allocations: 339.2 kB / 0.5399 GB, free: 5.973 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.324, allocations: 35.05 kB / 0.5399 GB, free: 5.934 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001913/0.3242, allocations: 246.8 kB / 0.5402 GB, free: 5.711 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.758e-05/0.3242, allocations: 54.53 kB / 0.5402 GB, free: 5.664 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.52e-05/0.3243, allocations: 58.16 kB / 0.5403 GB, free: 5.617 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.3245, allocations: 344.7 kB / 0.5406 GB, free: 5.277 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002405/0.3247, allocations: 79.72 kB / 0.5407 GB, free: 5.242 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003184/0.3251, allocations: 170.1 kB / 0.5408 GB, free: 5.09 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005337/0.3256, allocations: 250.8 kB / 0.5411 GB, free: 4.895 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.3256, allocations: 5.031 kB / 0.5411 GB, free: 4.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007047/0.3263, allocations: 321.4 kB / 0.5414 GB, free: 4.715 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.3264, allocations: 6.625 kB / 0.5414 GB, free: 4.715 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.3264, allocations: 3.344 kB / 0.5414 GB, free: 4.715 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.3264, allocations: 4.5 kB / 0.5414 GB, free: 4.715 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004137/0.3268, allocations: 88.94 kB / 0.5415 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.3268, allocations: 8.234 kB / 0.5415 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002947/0.3271, allocations: 52.12 kB / 0.5415 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.3272, allocations: 10 kB / 0.5416 GB, free: 4.652 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * 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.0001685/0.3273, allocations: 149.5 kB / 0.5417 GB, free: 4.512 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.3275, allocations: 34.19 kB / 0.5417 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.212e-05/0.3275, allocations: 39.2 kB / 0.5418 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.3275, allocations: 2.344 kB / 0.5418 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3276, allocations: 2.031 kB / 0.5418 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.3276, allocations: 1.375 kB / 0.5418 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008562/0.3284, allocations: 0.5936 MB / 0.5424 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.3284, allocations: 1.312 kB / 0.5424 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002887/0.3287, allocations: 58.94 kB / 0.5424 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.3287, allocations: 6.438 kB / 0.5424 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.3288, allocations: 15.3 kB / 0.5424 GB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.3288, allocations: 2.5 kB / 0.5424 GB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3288, allocations: 1.344 kB / 0.5424 GB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006242/0.3294, allocations: 401.5 kB / 0.5428 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.893e-05/0.3295, allocations: 105.4 kB / 0.5429 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.086e-05/0.3296, allocations: 11.28 kB / 0.5429 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002385/0.3298, allocations: 12.48 kB / 0.5429 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.971e-05/0.3299, allocations: 22.33 kB / 0.543 GB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.3299, allocations: 5.281 kB / 0.543 GB, free: 3.379 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002555/0.3302, allocations: 241.4 kB / 0.5432 GB, free: 3.223 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3302, allocations: 0 / 0.5432 GB, free: 3.223 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003951/0.3306, allocations: 68.23 kB / 0.5433 GB, free: 3.211 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (15): * Single equations (assignments): 15 * 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.0009644/0.3315, allocations: 0.9366 MB / 0.5442 GB, free: 2.332 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005541/0.3321, allocations: 191 kB / 0.5444 GB, free: 2.254 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3321, allocations: 0.5 kB / 0.5444 GB, free: 2.254 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002351/0.3324, allocations: 86.48 kB / 0.5444 GB, free: 2.215 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004355/0.3328, allocations: 28.05 kB / 0.5445 GB, free: 2.199 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004243/0.3371, allocations: 3.002 MB / 0.5474 GB, free: 15.72 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004588/0.3375, allocations: 0.7791 MB / 0.5482 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001111/0.3377, allocations: 21.95 kB / 0.5482 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001658/0.3378, allocations: 107.4 kB / 0.5483 GB, free: 14.79 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3378, allocations: 0 / 0.5483 GB, free: 14.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02751/0.3654, allocations: 4.971 MB / 0.5531 GB, free: 9.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.78/8.145, allocations: 8.938 kB / 0.5531 GB, free: 9.91 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1)