Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 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.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_trunk_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.001287/0.001287, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 201.2 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.378/1.378, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.218/0.218, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3253, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.003434/0.3288, allocations: 2.495 MB / 0.5329 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.3304, allocations: 1.088 MB / 0.534 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.01e-05/0.3305, allocations: 5.5 kB / 0.534 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.3317, allocations: 0.4985 MB / 0.5345 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002586/0.332, allocations: 106.6 kB / 0.5346 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008266/0.3328, allocations: 483.1 kB / 0.535 GB, free: 9.797 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002708/0.3331, allocations: 225 kB / 0.5353 GB, free: 9.664 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004122/0.3335, allocations: 248.5 kB / 0.5355 GB, free: 9.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001953/0.3337, allocations: 104.5 kB / 0.5356 GB, free: 9.457 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001461/0.3339, allocations: 120.8 kB / 0.5357 GB, free: 9.379 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.706e-05/0.3339, allocations: 26.22 kB / 0.5357 GB, free: 9.375 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002996/0.3342, allocations: 153.9 kB / 0.5359 GB, free: 9.312 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.362e-05/0.3343, allocations: 54.59 kB / 0.5359 GB, free: 9.266 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.3344, allocations: 113.2 kB / 0.536 GB, free: 9.188 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004677/0.3349, allocations: 407.2 kB / 0.5364 GB, free: 8.902 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3349, allocations: 1.406 kB / 0.5364 GB, free: 8.902 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.228e-06/0.3349, allocations: 3.984 kB / 0.5364 GB, free: 8.898 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.3349, allocations: 0 / 0.5364 GB, free: 8.898 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.001259/0.3362, allocations: 0.6222 MB / 0.537 GB, free: 8.352 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.3362, allocations: 9.656 kB / 0.5371 GB, free: 8.352 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.798e-05/0.3363, allocations: 67.22 kB / 0.5371 GB, free: 8.285 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003293/0.3366, allocations: 50.86 kB / 0.5372 GB, free: 8.262 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001536/0.3368, allocations: 186.4 kB / 0.5373 GB, free: 8.047 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.3368, allocations: 19.5 kB / 0.5374 GB, free: 8.039 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.648e-05/0.3369, allocations: 28.14 kB / 0.5374 GB, free: 8.027 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005835/0.3375, allocations: 300 kB / 0.5377 GB, free: 7.828 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.3375, allocations: 3.938 kB / 0.5377 GB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.611e-05/0.3375, allocations: 11.16 kB / 0.5377 GB, free: 7.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.3375, allocations: 5.406 kB / 0.5377 GB, free: 7.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005838/0.3381, allocations: 227.2 kB / 0.5379 GB, free: 7.715 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001456/0.3396, allocations: 1.005 MB / 0.5389 GB, free: 6.836 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005607/0.3402, allocations: 380.8 kB / 0.5393 GB, free: 6.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003469/0.3405, allocations: 133.3 kB / 0.5394 GB, free: 6.434 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000173/0.3407, allocations: 169.5 kB / 0.5395 GB, free: 6.238 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.3407, allocations: 37.28 kB / 0.5396 GB, free: 6.195 MB / 398.1 MB Notification: Performance of pre-optimization done (n=19): time 1.373e-06/0.3408, allocations: 0 / 0.5396 GB, free: 6.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001235/0.342, allocations: 0.4986 MB / 0.5401 GB, free: 5.809 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/0.3421, allocations: 80.67 kB / 0.5401 GB, free: 5.715 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.3422, allocations: 141.2 kB / 0.5403 GB, free: 5.594 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.3422, allocations: 25.7 kB / 0.5403 GB, free: 5.562 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.106e-05/0.3423, allocations: 150.5 kB / 0.5404 GB, free: 5.422 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.52e-05/0.3424, allocations: 67.39 kB / 0.5405 GB, free: 5.363 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.881e-05/0.3424, allocations: 42.33 kB / 0.5406 GB, free: 5.328 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.3426, allocations: 326.5 kB / 0.5409 GB, free: 5.004 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002141/0.3428, allocations: 64.33 kB / 0.5409 GB, free: 4.977 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002322/0.343, allocations: 121 kB / 0.541 GB, free: 4.883 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004531/0.3435, allocations: 213.3 kB / 0.5412 GB, free: 4.738 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3435, allocations: 0 / 0.5412 GB, free: 4.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006236/0.3441, allocations: 284.2 kB / 0.5415 GB, free: 4.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.3442, allocations: 6.094 kB / 0.5415 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.3442, allocations: 1.562 kB / 0.5415 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002104/0.3444, allocations: 52.59 kB / 0.5416 GB, free: 4.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001929/0.3446, allocations: 47.69 kB / 0.5416 GB, free: 4.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00211/0.3467, allocations: 2.84 MB / 0.5444 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000196/0.3469, allocations: 30.89 kB / 0.5444 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.347, allocations: 10.25 kB / 0.5444 GB, free: 1.555 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.000243/0.3472, allocations: 149.2 kB / 0.5446 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.465e-05/0.3473, allocations: 10.36 kB / 0.5446 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007634/0.3481, allocations: 265.1 kB / 0.5448 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.768e-06/0.3481, allocations: 5.344 kB / 0.5448 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.3481, allocations: 1.438 kB / 0.5448 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.3481, allocations: 1.219 kB / 0.5448 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001258/0.3494, allocations: 0.6524 MB / 0.5455 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.3494, allocations: 1.156 kB / 0.5455 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002053/0.3496, allocations: 37.91 kB / 0.5455 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001435/0.3498, allocations: 46.75 kB / 0.5456 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.3498, allocations: 6.375 kB / 0.5456 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002096/0.3519, allocations: 2.846 MB / 0.5483 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3519, allocations: 1.062 kB / 0.5483 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009044/0.3528, allocations: 0.5216 MB / 0.5489 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.641e-05/0.3529, allocations: 85.78 kB / 0.5489 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.365e-05/0.3529, allocations: 6.281 kB / 0.5489 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001827/0.3531, allocations: 19.8 kB / 0.549 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.645e-05/0.3532, allocations: 24.25 kB / 0.549 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.3532, allocations: 8.719 kB / 0.549 GB, free: 13.15 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.136e-05/0.3533, allocations: 105.3 kB / 0.5491 GB, free: 13.07 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3533, allocations: 1.125 kB / 0.5491 GB, free: 13.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004705/0.3538, allocations: 79.89 kB / 0.5492 GB, free: 13.04 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.001271/0.3551, allocations: 1.081 MB / 0.5502 GB, free: 12.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007725/0.3558, allocations: 420.9 kB / 0.5506 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3559, allocations: 0 / 0.5506 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003897/0.3562, allocations: 334.8 kB / 0.5509 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004119/0.3567, allocations: 9.688 kB / 0.551 GB, free: 11.49 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00304/0.3597, allocations: 2.373 MB / 0.5533 GB, free: 9.082 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.3601, allocations: 0.736 MB / 0.554 GB, free: 8.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.356e-05/0.3602, allocations: 21.42 kB / 0.554 GB, free: 8.301 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.994e-05/0.3603, allocations: 55.42 kB / 0.5541 GB, free: 8.246 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3603, allocations: 0 / 0.5541 GB, free: 8.246 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02636/0.3866, allocations: 4.403 MB / 0.5584 GB, free: 4.004 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.538/9.925, allocations: 5.562 kB / 0.5584 GB, free: 4.004 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/QuasiStatic/FluxTubes/VariableComponents/VariableComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches