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.001601/0.001601, allocations: 121.2 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001541/0.001541, allocations: 204.6 kB / 18.74 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2273/0.2273, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 71.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3352/0.3366, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.004372/0.3411, allocations: 2.483 MB / 0.5329 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002296/0.3434, allocations: 1.083 MB / 0.534 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001602/0.3436, allocations: 9.438 kB / 0.534 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.3452, allocations: 0.4999 MB / 0.5345 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003781/0.3455, allocations: 105.2 kB / 0.5346 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009896/0.3465, allocations: 491 kB / 0.535 GB, free: 9.785 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004015/0.347, allocations: 225.8 kB / 0.5353 GB, free: 9.652 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005623/0.3475, allocations: 255.4 kB / 0.5355 GB, free: 9.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002857/0.3478, allocations: 100.9 kB / 0.5356 GB, free: 9.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002098/0.3481, allocations: 126 kB / 0.5357 GB, free: 9.359 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.689e-05/0.3481, allocations: 21.75 kB / 0.5357 GB, free: 9.359 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004355/0.3485, allocations: 153.1 kB / 0.5359 GB, free: 9.297 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.013e-05/0.3486, allocations: 46.72 kB / 0.5359 GB, free: 9.258 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001445/0.3488, allocations: 121 kB / 0.536 GB, free: 9.172 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006742/0.3494, allocations: 407.5 kB / 0.5364 GB, free: 8.887 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.3495, allocations: 1.219 kB / 0.5364 GB, free: 8.887 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3495, allocations: 0 / 0.5364 GB, free: 8.887 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.3495, allocations: 0 / 0.5364 GB, free: 8.887 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.00137/0.3509, allocations: 0.6192 MB / 0.537 GB, free: 8.344 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.3509, allocations: 16.64 kB / 0.5371 GB, free: 8.336 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.769e-05/0.351, allocations: 59.14 kB / 0.5371 GB, free: 8.277 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003392/0.3514, allocations: 51.14 kB / 0.5372 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001783/0.3515, allocations: 194.2 kB / 0.5373 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.398e-05/0.3516, allocations: 19.44 kB / 0.5374 GB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.95e-05/0.3516, allocations: 24.5 kB / 0.5374 GB, free: 8.016 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006374/0.3523, allocations: 296 kB / 0.5377 GB, free: 7.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.3523, allocations: 4 kB / 0.5377 GB, free: 7.816 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.538e-05/0.3523, allocations: 10.09 kB / 0.5377 GB, free: 7.809 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.3524, allocations: 6.781 kB / 0.5377 GB, free: 7.809 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005727/0.3529, allocations: 227 kB / 0.5379 GB, free: 7.707 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001627/0.3546, allocations: 1.006 MB / 0.5389 GB, free: 6.828 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005407/0.3551, allocations: 370.1 kB / 0.5392 GB, free: 6.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003613/0.3555, allocations: 140.6 kB / 0.5394 GB, free: 6.426 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002048/0.3557, allocations: 170.5 kB / 0.5395 GB, free: 6.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.749e-05/0.3558, allocations: 40.47 kB / 0.5396 GB, free: 6.184 MB / 398.1 MB Notification: Performance of pre-optimization done (n=19): time 1.994e-06/0.3558, allocations: 0 / 0.5396 GB, free: 6.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001239/0.357, allocations: 0.4883 MB / 0.5401 GB, free: 5.809 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/0.3571, allocations: 83.42 kB / 0.5401 GB, free: 5.711 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.3572, allocations: 148.7 kB / 0.5403 GB, free: 5.582 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.282e-05/0.3573, allocations: 30.8 kB / 0.5403 GB, free: 5.547 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.044e-05/0.3574, allocations: 141.9 kB / 0.5404 GB, free: 5.414 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.079e-05/0.3574, allocations: 74.91 kB / 0.5405 GB, free: 5.348 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.043e-05/0.3575, allocations: 38.64 kB / 0.5405 GB, free: 5.316 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.3576, allocations: 326.6 kB / 0.5409 GB, free: 4.992 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000204/0.3578, allocations: 72.2 kB / 0.5409 GB, free: 4.957 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.3581, allocations: 122 kB / 0.541 GB, free: 4.863 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004211/0.3585, allocations: 204.1 kB / 0.5412 GB, free: 4.727 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3585, allocations: 5.594 kB / 0.5412 GB, free: 4.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005911/0.3591, allocations: 275.1 kB / 0.5415 GB, free: 4.562 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.3591, allocations: 9.922 kB / 0.5415 GB, free: 4.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.3592, allocations: 6.281 kB / 0.5415 GB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002231/0.3594, allocations: 47.98 kB / 0.5416 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000187/0.3596, allocations: 39.67 kB / 0.5416 GB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002043/0.3616, allocations: 2.844 MB / 0.5444 GB, free: 1.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.3618, allocations: 35.44 kB / 0.5444 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.838e-05/0.3619, allocations: 10.91 kB / 0.5444 GB, free: 1.543 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.0001507/0.362, allocations: 143.8 kB / 0.5446 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.547e-05/0.3621, allocations: 13.67 kB / 0.5446 GB, free: 1.398 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006412/0.3627, allocations: 266.3 kB / 0.5448 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.3627, allocations: 3.281 kB / 0.5448 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3628, allocations: 1.062 kB / 0.5448 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.3628, allocations: 9.141 kB / 0.5448 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.3639, allocations: 0.6428 MB / 0.5455 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3639, allocations: 1.125 kB / 0.5455 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001722/0.3641, allocations: 41.88 kB / 0.5455 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001292/0.3643, allocations: 50.62 kB / 0.5456 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.3643, allocations: 7.281 kB / 0.5456 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001747/0.366, allocations: 2.838 MB / 0.5483 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.3661, allocations: 5.062 kB / 0.5483 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008595/0.3669, allocations: 0.5169 MB / 0.5489 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.349e-05/0.367, allocations: 86.44 kB / 0.5489 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.367, allocations: 6.25 kB / 0.5489 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001904/0.3672, allocations: 23.62 kB / 0.549 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.722e-05/0.3673, allocations: 20.73 kB / 0.549 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/0.3673, allocations: 5.141 kB / 0.549 GB, free: 13.15 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.704e-05/0.3674, allocations: 107.7 kB / 0.5491 GB, free: 13.06 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3674, allocations: 0 / 0.5491 GB, free: 13.06 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004691/0.3679, allocations: 76.41 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.001221/0.3691, allocations: 1.089 MB / 0.5502 GB, free: 12.1 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006995/0.3698, allocations: 419.7 kB / 0.5506 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3698, allocations: 0 / 0.5506 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003778/0.3702, allocations: 338.4 kB / 0.5509 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004019/0.3706, allocations: 21.58 kB / 0.551 GB, free: 11.47 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0029/0.3735, allocations: 2.361 MB / 0.5533 GB, free: 9.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.3738, allocations: 0.7322 MB / 0.554 GB, free: 8.332 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.073e-05/0.3739, allocations: 13.42 kB / 0.554 GB, free: 8.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.218e-05/0.374, allocations: 59.41 kB / 0.5541 GB, free: 8.262 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.374, allocations: 4 kB / 0.5541 GB, free: 8.258 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03256/0.4066, allocations: 4.396 MB / 0.5584 GB, free: 4.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/10.87, allocations: 17.58 kB / 0.5584 GB, free: 4.012 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