Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_trunk_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.001607/0.001607, allocations: 103.9 kB / 17.63 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00195/0.00195, allocations: 202.4 kB / 18.57 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2332/0.2332, allocations: 46.11 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 77.81 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1323, allocations: 62.45 MB / 480.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.004087/0.1365, allocations: 1.725 MB / 481.8 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002862/0.1368, allocations: 87.67 kB / 481.9 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.385e-05/0.1369, allocations: 4 kB / 481.9 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.737e-05/0.137, allocations: 11.86 kB / 482 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9e-05/0.1371, allocations: 27.72 kB / 482 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001444/0.1373, allocations: 23.97 kB / 482 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001813/0.1375, allocations: 103.6 kB / 482.1 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002122/0.1377, allocations: 51.95 kB / 482.2 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.1378, allocations: 51.84 kB / 482.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.1379, allocations: 55.7 kB / 482.3 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.141e-05/0.1379, allocations: 12 kB / 482.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.446e-05/0.138, allocations: 12 kB / 482.3 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.427e-05/0.138, allocations: 19.92 kB / 482.3 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.902e-05/0.1381, allocations: 47.8 kB / 482.3 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001991/0.1383, allocations: 115.9 kB / 482.5 MB, free: 2.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.1383, allocations: 0 / 482.5 MB, free: 2.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.1383, allocations: 0 / 482.5 MB, free: 2.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.796e-06/0.1383, allocations: 0 / 482.5 MB, free: 2.852 MB / 350.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.0007692/0.1391, allocations: 431.1 kB / 482.9 MB, free: 2.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.1392, allocations: 8.031 kB / 482.9 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.123e-05/0.1392, allocations: 42.75 kB / 482.9 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.165e-05/0.1393, allocations: 8.844 kB / 482.9 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.1394, allocations: 180.2 kB / 483.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.1394, allocations: 4.375 kB / 483.1 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.952e-05/0.1395, allocations: 12.38 kB / 483.1 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003297/0.1398, allocations: 126 kB / 483.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.1398, allocations: 3.938 kB / 483.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.1398, allocations: 4 kB / 483.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.1399, allocations: 0 / 483.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003481/0.1402, allocations: 107.9 kB / 483.4 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007924/0.141, allocations: 479.3 kB / 483.8 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002472/0.1413, allocations: 90.45 kB / 483.9 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002263/0.1415, allocations: 68.94 kB / 484 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.643e-05/0.1415, allocations: 0 / 484 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.1416, allocations: 38.44 kB / 484 MB, free: 1.102 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 8.92e-07/0.1416, allocations: 4 kB / 484 MB, free: 1.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.000864/0.1424, allocations: 263.4 kB / 484.3 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/0.1425, allocations: 59.41 kB / 484.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.1426, allocations: 121.8 kB / 484.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.1427, allocations: 29.64 kB / 484.5 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.021e-05/0.1427, allocations: 108.1 kB / 484.6 MB, free: 476 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.257e-05/0.1428, allocations: 23.72 kB / 484.6 MB, free: 452 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.067e-05/0.1428, allocations: 21.72 kB / 484.6 MB, free: 424 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.143, allocations: 318.8 kB / 485 MB, free: 96 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000165/0.1431, allocations: 35.97 kB / 485 MB, free: 60 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00018/0.1433, allocations: 58.53 kB / 485.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003118/0.1437, allocations: 106.4 kB / 485.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.1437, allocations: 0 / 485.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004049/0.1441, allocations: 142.3 kB / 485.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.1441, allocations: 4 kB / 485.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1441, allocations: 4.062 kB / 485.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001406/0.1443, allocations: 28.78 kB / 485.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.1444, allocations: 15.98 kB / 485.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001001/0.1454, allocations: 1.407 MB / 486.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.586e-05/0.1455, allocations: 12.3 kB / 486.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.1455, allocations: 0 / 486.8 MB, free: 14.12 MB / 366.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 8.944e-05/0.1456, allocations: 121.9 kB / 486.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.176e-05/0.1457, allocations: 11.84 kB / 486.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.065e-05/0.1457, allocations: 12.38 kB / 486.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.1457, allocations: 8 kB / 486.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.135e-06/0.1457, allocations: 0 / 486.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.1457, allocations: 0 / 486.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006433/0.1464, allocations: 428 kB / 487.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1464, allocations: 0 / 487.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.1465, allocations: 19.97 kB / 487.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.533e-05/0.1465, allocations: 16.86 kB / 487.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.1466, allocations: 3.938 kB / 487.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008809/0.1475, allocations: 1.402 MB / 488.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1475, allocations: 144 / 488.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004345/0.1479, allocations: 249 kB / 489 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.389e-05/0.148, allocations: 85.02 kB / 489.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.141e-05/0.148, allocations: 0 / 489.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.1481, allocations: 19.98 kB / 489.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.555e-05/0.1482, allocations: 7.984 kB / 489.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.1482, allocations: 3.938 kB / 489.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.801e-05/0.1482, allocations: 103.2 kB / 489.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1482, allocations: 0 / 489.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002658/0.1485, allocations: 19.94 kB / 489.3 MB, free: 11.37 MB / 366.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.0007391/0.1492, allocations: 0.7727 MB / 490 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005639/0.1498, allocations: 210.6 kB / 490.2 MB, free: 10.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.1498, allocations: 0 / 490.2 MB, free: 10.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002845/0.1501, allocations: 162.5 kB / 490.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/0.1505, allocations: 21.84 kB / 490.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.1526, allocations: 1.596 MB / 492 MB, free: 8.465 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002908/0.1529, allocations: 0.6924 MB / 492.7 MB, free: 7.746 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.438e-05/0.153, allocations: 4 kB / 492.7 MB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.043e-05/0.153, allocations: 27.42 kB / 492.7 MB, free: 7.715 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1531, allocations: 0 / 492.7 MB, free: 7.715 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0219/0.175, allocations: 2.311 MB / 495 MB, free: 5.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.322/9.497, allocations: 7.938 kB / 495 MB, free: 5.492 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Magnetic_FluxTubes_VariableComponents.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/VariableComponents/VariableComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches