Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 193.7 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00162/0.00162, allocations: 47.92 kB / 370.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2247/0.2263, allocations: 52.18 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004306/0.2306, allocations: 2.637 MB / 425.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.2318, allocations: 0.6894 MB / 425.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.232, allocations: 8 kB / 425.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002267/0.2322, allocations: 71.36 kB / 426 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000266/0.2325, allocations: 91.23 kB / 426.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.2328, allocations: 107.8 kB / 426.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004169/0.2332, allocations: 398.4 kB / 426.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/0.2334, allocations: 81.05 kB / 426.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002607/0.2337, allocations: 163.4 kB / 426.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002244/0.2339, allocations: 143.2 kB / 426.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.797e-05/0.2339, allocations: 36 kB / 427 MB, free: 9.977 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.933e-05/0.234, allocations: 32 kB / 427 MB, free: 9.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.213e-05/0.2341, allocations: 79.69 kB / 427.1 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001384/0.2342, allocations: 143.3 kB / 427.2 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004398/0.2347, allocations: 398.3 kB / 427.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2347, allocations: 4 kB / 427.6 MB, free: 9.332 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2347, allocations: 0 / 427.6 MB, free: 9.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.2347, allocations: 0 / 427.6 MB, free: 9.332 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001213/0.2359, allocations: 0.5714 MB / 428.2 MB, free: 8.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.2359, allocations: 16.03 kB / 428.2 MB, free: 8.715 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.464e-05/0.236, allocations: 66.72 kB / 428.3 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.173e-05/0.2361, allocations: 48.62 kB / 428.3 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003911/0.2365, allocations: 206 kB / 428.5 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.148e-05/0.2365, allocations: 28.97 kB / 428.5 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.655e-05/0.2366, allocations: 32.38 kB / 428.6 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006017/0.2372, allocations: 286.2 kB / 428.9 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.2372, allocations: 4 kB / 428.9 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.906e-05/0.2372, allocations: 12 kB / 428.9 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.2372, allocations: 8 kB / 428.9 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006153/0.2378, allocations: 246.5 kB / 429.1 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.2396, allocations: 0.9244 MB / 430 MB, free: 6.758 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000389/0.24, allocations: 153.3 kB / 430.2 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001835/0.2401, allocations: 64.73 kB / 430.3 MB, free: 6.535 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.899e-05/0.2402, allocations: 8 kB / 430.3 MB, free: 6.527 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.925e-05/0.2402, allocations: 34.56 kB / 430.3 MB, free: 6.484 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 3.146e-06/0.2402, allocations: 4 kB / 430.3 MB, free: 6.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.002077/0.2423, allocations: 0.5879 MB / 430.9 MB, free: 5.879 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.2423, allocations: 55.39 kB / 430.9 MB, free: 5.812 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003136/0.2426, allocations: 273.7 kB / 431.2 MB, free: 5.535 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.2427, allocations: 29.7 kB / 431.2 MB, free: 5.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001691/0.2428, allocations: 232.1 kB / 431.5 MB, free: 5.266 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.706e-05/0.2429, allocations: 83.27 kB / 431.5 MB, free: 5.184 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.243, allocations: 65.66 kB / 431.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.2432, allocations: 334.8 kB / 431.9 MB, free: 4.777 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000286/0.2435, allocations: 87.94 kB / 432 MB, free: 4.691 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003718/0.2438, allocations: 200.1 kB / 432.2 MB, free: 4.449 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006467/0.2445, allocations: 302.3 kB / 432.5 MB, free: 4.113 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2445, allocations: 3.938 kB / 432.5 MB, free: 4.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008497/0.2453, allocations: 389.1 kB / 432.9 MB, free: 3.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.2453, allocations: 11.27 kB / 432.9 MB, free: 3.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.2454, allocations: 4 kB / 432.9 MB, free: 3.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002407/0.2456, allocations: 58.09 kB / 433 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003227/0.2459, allocations: 75.89 kB / 433 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002223/0.2481, allocations: 2.623 MB / 435.7 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002723/0.2484, allocations: 27.97 kB / 435.7 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.2484, allocations: 15.94 kB / 435.7 MB, free: 0.6758 MB / 334.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 (37): * Single equations (assignments): 35 * 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.0001743/0.2486, allocations: 147.4 kB / 435.9 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.396e-05/0.2487, allocations: 31.81 kB / 435.9 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.713e-05/0.2487, allocations: 30.27 kB / 435.9 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.2487, allocations: 0 / 435.9 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.2488, allocations: 8.062 kB / 435.9 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.706e-06/0.2488, allocations: 0 / 435.9 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003861/0.2491, allocations: 284.5 kB / 436.2 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2491, allocations: 0 / 436.2 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002129/0.2494, allocations: 39.97 kB / 436.2 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001519/0.2495, allocations: 57.61 kB / 436.3 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.2495, allocations: 8 kB / 436.3 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002125/0.2517, allocations: 2.61 MB / 438.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2517, allocations: 0 / 438.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007358/0.2524, allocations: 384.8 kB / 439.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.237e-05/0.2524, allocations: 19.86 kB / 439.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.055e-05/0.2525, allocations: 4 kB / 439.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.2527, allocations: 15.98 kB / 439.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.933e-05/0.2527, allocations: 23.89 kB / 439.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.2527, allocations: 8 kB / 439.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001955/0.2529, allocations: 185.2 kB / 439.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2529, allocations: 4 kB / 439.5 MB, free: 12.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003806/0.2533, allocations: 72 kB / 439.6 MB, free: 12.46 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (18): * Single equations (assignments): 16 * 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.001068/0.2544, allocations: 0.9029 MB / 440.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009417/0.2553, allocations: 476.9 kB / 441 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2553, allocations: 0 / 441 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005119/0.2558, allocations: 349.4 kB / 441.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000331/0.2562, allocations: 28.48 kB / 441.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004354/0.2605, allocations: 2.939 MB / 444.3 MB, free: 7.535 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001659/0.2607, allocations: 164.8 kB / 444.5 MB, free: 7.355 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.2608, allocations: 30.28 kB / 444.5 MB, free: 7.324 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.261, allocations: 103.3 kB / 444.6 MB, free: 7.223 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.261, allocations: 0 / 444.6 MB, free: 7.223 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03783/0.2988, allocations: 6.207 MB / 450.8 MB, free: 1.176 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.07, allocations: 7.375 kB / 450.8 MB, free: 1.172 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.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_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable magFluxSensor.Phi in file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv. Warning: Get data of variable magFluxSensor.Phi from file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv failed! Error: Could not read variable voltageSensor.v in file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv. Warning: Get data of variable voltageSensor.v from file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.513906880747527]