Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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) 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(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00137/0.00137, allocations: 103.9 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.001336/0.001336, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 55.78 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09506/0.09644, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006446/0.1029, allocations: 5.041 MB / 362.6 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003815/0.1068, allocations: 2.152 MB / 364.8 MB, free: 6.773 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005876/0.1074, allocations: 16 kB / 364.8 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003368/0.1108, allocations: 1.4 MB / 366.2 MB, free: 5.355 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001505/0.1123, allocations: 421.3 kB / 366.6 MB, free: 4.941 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00252/0.1148, allocations: 1.209 MB / 367.8 MB, free: 3.734 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001241/0.1161, allocations: 0.72 MB / 368.5 MB, free: 3.012 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001151/0.1172, allocations: 0.6575 MB / 369.2 MB, free: 2.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005082/0.1178, allocations: 334.8 kB / 369.5 MB, free: 2.012 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005658/0.1183, allocations: 426.3 kB / 369.9 MB, free: 1.594 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001642/0.1185, allocations: 68 kB / 370 MB, free: 1.527 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001001/0.1195, allocations: 415.6 kB / 370.4 MB, free: 1.121 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001806/0.1197, allocations: 171.4 kB / 370.6 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004322/0.1202, allocations: 366.2 kB / 370.9 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1714/0.2915, allocations: 1.191 MB / 372.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.2916, allocations: 0 / 372.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2916, allocations: 1.562 kB / 372.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.777e-05/0.2917, allocations: 0 / 372.1 MB, free: 11.73 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.005895/0.2976, allocations: 1.46 MB / 373.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.2976, allocations: 9.531 kB / 373.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001794/0.2978, allocations: 130.5 kB / 373.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002736/0.3006, allocations: 384.3 kB / 374.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003541/0.3009, allocations: 261 kB / 374.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.298e-05/0.301, allocations: 64.62 kB / 374.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001868/0.3012, allocations: 87.61 kB / 374.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001811/0.303, allocations: 0.8733 MB / 375.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.095e-05/0.3031, allocations: 1.938 kB / 375.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.899e-05/0.3032, allocations: 34.45 kB / 375.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.28e-05/0.3032, allocations: 22.47 kB / 375.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.3049, allocations: 0.7945 MB / 376.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005806/0.3107, allocations: 3.049 MB / 379.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001498/0.3123, allocations: 0.9975 MB / 380.3 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007026/0.313, allocations: 245 kB / 380.5 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001778/0.3132, allocations: 179.6 kB / 380.7 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.3132, allocations: 38.55 kB / 380.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 5.03e-06/0.3133, allocations: 0 / 380.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01002/0.3233, allocations: 2.397 MB / 383.1 MB, free: 7.328 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.3234, allocations: 86.73 kB / 383.2 MB, free: 7.234 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004633/0.3239, allocations: 302.4 kB / 383.5 MB, free: 7.062 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.142e-05/0.3239, allocations: 35.98 kB / 383.5 MB, free: 7.023 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002227/0.3242, allocations: 362.5 kB / 383.9 MB, free: 6.734 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001831/0.3244, allocations: 215.4 kB / 384.1 MB, free: 6.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002946/0.3247, allocations: 142.6 kB / 384.3 MB, free: 6.496 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.3248, allocations: 347.1 kB / 384.6 MB, free: 6.168 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001043/0.3258, allocations: 279.5 kB / 384.9 MB, free: 6.086 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001168/0.327, allocations: 0.5015 MB / 385.4 MB, free: 5.703 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00214/0.3292, allocations: 0.809 MB / 386.2 MB, free: 5.199 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.785e-05/0.3292, allocations: 5.812 kB / 386.2 MB, free: 5.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002859/0.3321, allocations: 0.8896 MB / 387.1 MB, free: 4.895 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.106e-05/0.3321, allocations: 9.031 kB / 387.1 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.834e-05/0.3322, allocations: 7.203 kB / 387.1 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003456/0.3325, allocations: 79.33 kB / 387.2 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001158/0.3337, allocations: 195.6 kB / 387.4 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001994/0.3357, allocations: 2.861 MB / 390.2 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009651/0.3367, allocations: 69.94 kB / 390.3 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.3368, allocations: 38.89 kB / 390.3 MB, free: 1.957 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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.0003662/0.3372, allocations: 216.9 kB / 390.5 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.3373, allocations: 41.5 kB / 390.6 MB, free: 1.762 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002497/0.3398, allocations: 0.7373 MB / 391.3 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.3399, allocations: 6.688 kB / 391.3 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3399, allocations: 4 kB / 391.3 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.3399, allocations: 7.234 kB / 391.3 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00359/0.3435, allocations: 1.415 MB / 392.7 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3435, allocations: 1.312 kB / 392.7 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000862/0.3444, allocations: 133.6 kB / 392.9 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002164/0.3446, allocations: 60.88 kB / 392.9 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.569e-05/0.3447, allocations: 12.16 kB / 392.9 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002513/0.3472, allocations: 2.849 MB / 395.8 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3472, allocations: 7.938 kB / 395.8 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003482/0.3507, allocations: 1.08 MB / 396.9 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003137/0.351, allocations: 159.2 kB / 397 MB, free: 13.22 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.3512, allocations: 11.05 kB / 397 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006917/0.3519, allocations: 47.67 kB / 397.1 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/0.352, allocations: 48.48 kB / 397.1 MB, free: 13.19 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.488e-05/0.3521, allocations: 22.06 kB / 397.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003071/0.3524, allocations: 208.6 kB / 397.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3524, allocations: 0 / 397.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001179/0.3536, allocations: 176.5 kB / 397.5 MB, free: 13.04 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_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 (58): * Single equations (assignments): 56 * 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.003993/0.3576, allocations: 1.671 MB / 399.2 MB, free: 11.95 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003095/0.3607, allocations: 0.9379 MB / 400.1 MB, free: 11.42 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.3608, allocations: 1.312 kB / 400.2 MB, free: 11.42 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001327/0.3621, allocations: 0.5516 MB / 400.7 MB, free: 11.05 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007168/0.3628, allocations: 47.62 kB / 400.7 MB, free: 11.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008908/0.3717, allocations: 5.159 MB / 405.9 MB, free: 7.387 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004518/0.3722, allocations: 0.8863 MB / 406.8 MB, free: 6.602 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004746/0.3727, allocations: 87.56 kB / 406.9 MB, free: 6.551 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003293/0.373, allocations: 228.7 kB / 407.1 MB, free: 6.359 MB / 318.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3731, allocations: 0 / 407.1 MB, free: 6.359 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03291/0.406, allocations: 11 MB / 418.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.663/10.07, allocations: 15.92 kB / 418.1 MB, free: 11.68 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches