Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001711/0.001711, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002112/0.002112, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2337/0.2337, allocations: 46.11 MB / 344.2 MB, free: 11.57 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.002267/0.002267, allocations: 81.58 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1347, allocations: 62.45 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.003907/0.1386, allocations: 2.484 MB / 482.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001404/0.14, allocations: 0.8334 MB / 483.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001258/0.1402, allocations: 4 kB / 483.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002215/0.1404, allocations: 59.44 kB / 483.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002719/0.1407, allocations: 107.2 kB / 483.7 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002489/0.141, allocations: 95.86 kB / 483.8 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003669/0.1413, allocations: 354.7 kB / 484.1 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.1416, allocations: 100.9 kB / 484.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002532/0.1418, allocations: 139.5 kB / 484.4 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002025/0.142, allocations: 159.3 kB / 484.5 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.138e-05/0.1421, allocations: 32 kB / 484.6 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.53e-05/0.1422, allocations: 32 kB / 484.6 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.337e-05/0.1422, allocations: 67.75 kB / 484.7 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001633/0.1424, allocations: 163.1 kB / 484.8 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004371/0.1428, allocations: 366.7 kB / 485.2 MB, free: 144 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1429, allocations: 8 kB / 485.2 MB, free: 136 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1429, allocations: 0 / 485.2 MB, free: 136 kB / 350.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.1429, allocations: 0 / 485.2 MB, free: 136 kB / 350.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.001151/0.144, allocations: 0.6312 MB / 485.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.1441, allocations: 8.031 kB / 485.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.278e-05/0.1442, allocations: 58.73 kB / 485.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001518/0.1443, allocations: 44.53 kB / 485.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003288/0.1447, allocations: 262.7 kB / 486.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.1447, allocations: 16.94 kB / 486.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.158e-05/0.1448, allocations: 28.38 kB / 486.2 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006212/0.1454, allocations: 256.9 kB / 486.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.1454, allocations: 0 / 486.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.746e-05/0.1454, allocations: 8 kB / 486.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.1455, allocations: 8 kB / 486.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000528/0.146, allocations: 230.1 kB / 486.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001497/0.1475, allocations: 0.8869 MB / 487.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005632/0.1481, allocations: 307.6 kB / 487.9 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003005/0.1484, allocations: 148.8 kB / 488 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.642e-05/0.1484, allocations: 11.92 kB / 488.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.1485, allocations: 34.56 kB / 488.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.402e-06/0.1485, allocations: 4 kB / 488.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.004674/0.1532, allocations: 1.258 MB / 489.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/0.1532, allocations: 59.39 kB / 489.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002972/0.1535, allocations: 229 kB / 489.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.68e-05/0.1536, allocations: 29.7 kB / 489.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/0.1538, allocations: 173.1 kB / 489.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.1539, allocations: 102.5 kB / 489.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.154, allocations: 57.61 kB / 490 MB, free: 11.01 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001989/0.1542, allocations: 334.8 kB / 490.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002356/0.1545, allocations: 95.81 kB / 490.4 MB, free: 10.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002718/0.1547, allocations: 129.8 kB / 490.5 MB, free: 10.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004983/0.1552, allocations: 228.1 kB / 490.8 MB, free: 10.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.1553, allocations: 0 / 490.8 MB, free: 10.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001971/0.1572, allocations: 0.5527 MB / 491.3 MB, free: 9.648 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.1573, allocations: 4 kB / 491.3 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.1573, allocations: 3.984 kB / 491.3 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001707/0.159, allocations: 315.1 kB / 491.6 MB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.1592, allocations: 27.97 kB / 491.7 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009209/0.1684, allocations: 6.848 MB / 498.5 MB, free: 1.875 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002692/0.1687, allocations: 23.94 kB / 498.5 MB, free: 1.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.848e-05/0.1688, allocations: 12 kB / 498.5 MB, free: 1.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (15): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,5), (1,5), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002353/0.169, allocations: 149.1 kB / 498.7 MB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.832e-05/0.1691, allocations: 31.62 kB / 498.7 MB, free: 1.656 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.171, allocations: 0.5478 MB / 499.3 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.171, allocations: 7.938 kB / 499.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.171, allocations: 3.938 kB / 499.3 MB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.171, allocations: 0 / 499.3 MB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005355/0.1715, allocations: 357.3 kB / 499.6 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.808e-06/0.1716, allocations: 0 / 499.6 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.1717, allocations: 19.98 kB / 499.6 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001566/0.1733, allocations: 323 kB / 500 MB, free: 344 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.1733, allocations: 4 kB / 500 MB, free: 340 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008279/0.1816, allocations: 6.909 MB / 0.495 GB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.1816, allocations: 0 / 0.495 GB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00188/0.1835, allocations: 0.6234 MB / 0.4956 GB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.657e-05/0.1836, allocations: 108.6 kB / 0.4957 GB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.606e-05/0.1837, allocations: 11.98 kB / 0.4957 GB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001993/0.1839, allocations: 11.98 kB / 0.4957 GB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/0.184, allocations: 31.95 kB / 0.4958 GB, free: 8.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-05/0.1841, allocations: 12 kB / 0.4958 GB, free: 8.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000192/0.1843, allocations: 170 kB / 0.4959 GB, free: 7.852 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1843, allocations: 4 kB / 0.4959 GB, free: 7.848 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005442/0.1848, allocations: 115.8 kB / 0.496 GB, free: 7.734 MB / 382.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 (11): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,4), (2,4), (2,4), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002212/0.187, allocations: 1.164 MB / 0.4972 GB, free: 6.531 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001275/0.1883, allocations: 0.7647 MB / 0.4979 GB, free: 5.715 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1883, allocations: 0 / 0.4979 GB, free: 5.715 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001373/0.1897, allocations: 0.7289 MB / 0.4986 GB, free: 4.934 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003326/0.1901, allocations: 20.55 kB / 0.4987 GB, free: 4.914 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006485/0.1966, allocations: 3.163 MB / 0.5017 GB, free: 1.637 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005172/0.1971, allocations: 0.7795 MB / 0.5025 GB, free: 0.832 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.083e-05/0.1972, allocations: 9.969 kB / 0.5025 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.1973, allocations: 79.41 kB / 0.5026 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1974, allocations: 0 / 0.5026 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2505/0.4478, allocations: 10.79 MB / 0.5131 GB, free: 40.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.64, allocations: 7.203 kB / 0.5131 GB, free: 40.45 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1)