Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 215.2 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.428/1.428, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 39.94 kB / 377.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2948, allocations: 53.37 MB / 431.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.005332/0.3001, allocations: 3.567 MB / 434.7 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002104/0.3022, allocations: 0.9697 MB / 435.7 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003059/0.3025, allocations: 11.94 kB / 435.7 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003379/0.3028, allocations: 99.08 kB / 435.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004794/0.3033, allocations: 166.7 kB / 435.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004312/0.3038, allocations: 175.7 kB / 436.1 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007033/0.3045, allocations: 0.6347 MB / 436.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002915/0.3047, allocations: 142 kB / 436.9 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000343/0.3051, allocations: 251 kB / 437.1 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003506/0.3054, allocations: 274.7 kB / 437.4 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.306e-05/0.3055, allocations: 56 kB / 437.5 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.892e-05/0.3056, allocations: 52 kB / 437.5 MB, free: 460 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.3057, allocations: 119.6 kB / 437.6 MB, free: 340 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002877/0.306, allocations: 290.4 kB / 437.9 MB, free: 48 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000745/0.3067, allocations: 0.6384 MB / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3067, allocations: 0 / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3067, allocations: 0 / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.3068, allocations: 0 / 438.6 MB, free: 15.41 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001621/0.3084, allocations: 0.7972 MB / 439.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.3084, allocations: 8.031 kB / 439.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001085/0.3085, allocations: 94.7 kB / 439.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.3086, allocations: 68.52 kB / 439.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005394/0.3092, allocations: 298 kB / 439.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.74e-05/0.3092, allocations: 41.69 kB / 439.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.658e-05/0.3093, allocations: 52.12 kB / 439.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008625/0.3102, allocations: 430.5 kB / 440.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.3102, allocations: 0 / 440.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.575e-05/0.3102, allocations: 24 kB / 440.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.3102, allocations: 12 kB / 440.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009162/0.3112, allocations: 393 kB / 440.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002824/0.314, allocations: 1.509 MB / 442.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007902/0.3148, allocations: 300.4 kB / 442.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004281/0.3152, allocations: 165.4 kB / 442.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.791e-05/0.3152, allocations: 4.328 kB / 442.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.3153, allocations: 34.89 kB / 442.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 4.368e-06/0.3153, allocations: 4 kB / 442.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.003411/0.3187, allocations: 1.203 MB / 443.9 MB, free: 9.809 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.3187, allocations: 55.91 kB / 444 MB, free: 9.738 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005667/0.3193, allocations: 417.6 kB / 444.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.323e-05/0.3193, allocations: 37.64 kB / 444.4 MB, free: 9.281 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002525/0.3196, allocations: 316.6 kB / 444.8 MB, free: 8.965 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/0.3198, allocations: 190.3 kB / 444.9 MB, free: 8.777 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001978/0.32, allocations: 118.2 kB / 445.1 MB, free: 8.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001978/0.3202, allocations: 358.8 kB / 445.4 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004672/0.3206, allocations: 177.2 kB / 445.6 MB, free: 8.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005665/0.3212, allocations: 307 kB / 445.9 MB, free: 7.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009653/0.3222, allocations: 496 kB / 446.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.3222, allocations: 3.938 kB / 446.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001502/0.3237, allocations: 0.7288 MB / 447.1 MB, free: 6.512 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.3237, allocations: 11.98 kB / 447.1 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.3237, allocations: 4 kB / 447.1 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005795/0.3243, allocations: 177.6 kB / 447.3 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004995/0.3248, allocations: 119.8 kB / 447.4 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0046/0.3294, allocations: 4.073 MB / 451.5 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004519/0.3298, allocations: 27.94 kB / 451.5 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.347e-05/0.3299, allocations: 28 kB / 451.5 MB, free: 1.848 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002683/0.3302, allocations: 173.7 kB / 451.7 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.297e-05/0.3302, allocations: 51.67 kB / 451.8 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001268/0.3304, allocations: 69.06 kB / 451.8 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.3304, allocations: 8 kB / 451.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.678e-05/0.3304, allocations: 4 kB / 451.8 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.3304, allocations: 3.984 kB / 451.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002391/0.3328, allocations: 1.267 MB / 453.1 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.3328, allocations: 4 kB / 453.1 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002982/0.3331, allocations: 67.89 kB / 453.2 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004651/0.3336, allocations: 165.8 kB / 453.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.704e-05/0.3336, allocations: 8 kB / 453.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00396/0.3376, allocations: 3.895 MB / 457.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.3376, allocations: 4.031 kB / 457.2 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.3388, allocations: 0.7041 MB / 457.9 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.323e-05/0.3389, allocations: 43.61 kB / 458 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.52e-05/0.339, allocations: 15.98 kB / 458 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002869/0.3393, allocations: 19.98 kB / 458 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.3394, allocations: 52.28 kB / 458.1 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-05/0.3394, allocations: 12 kB / 458.1 MB, free: 10.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003342/0.3397, allocations: 291.2 kB / 458.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3397, allocations: 0 / 458.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000706/0.3404, allocations: 148 kB / 458.5 MB, free: 10.53 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (35): * Single equations (assignments): 33 * 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,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001632/0.3421, allocations: 1.248 MB / 459.8 MB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001581/0.3437, allocations: 0.7612 MB / 460.5 MB, free: 8.438 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3437, allocations: 0 / 460.5 MB, free: 8.438 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008187/0.3445, allocations: 0.5045 MB / 461 MB, free: 7.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004731/0.3449, allocations: 50.06 kB / 461.1 MB, free: 7.867 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007489/0.3524, allocations: 4.671 MB / 465.7 MB, free: 3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005301/0.353, allocations: 0.863 MB / 466.6 MB, free: 2.109 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000203/0.3532, allocations: 48.36 kB / 466.7 MB, free: 2.059 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002483/0.3534, allocations: 175.6 kB / 466.8 MB, free: 1.887 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3534, allocations: 0 / 466.8 MB, free: 1.887 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04714/0.4006, allocations: 10.36 MB / 477.2 MB, free: 7.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/12.97, allocations: 9.484 kB / 477.2 MB, free: 7.676 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_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_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable magFluxSensor.Phi in file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv. Warning: Get data of variable magFluxSensor.Phi from file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv failed! Error: Could not read variable voltageSensor.v in file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv. Warning: Get data of variable voltageSensor.v from file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.386568713998713]