Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.0007501/0.0007501, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007618/0.0007618, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8883/0.8883, allocations: 173.3 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.344e-06/2.344e-06, allocations: 3.984 kB / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.191e-05/1.426e-05, allocations: 2.281 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.003635/0.003649, allocations: 3.193 MB / 321.6 MB, free: 3.141 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.0048, allocations: 0.9034 MB / 322.5 MB, free: 2.234 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001772/0.004977, allocations: 8 kB / 322.5 MB, free: 2.227 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002403/0.005218, allocations: 87.16 kB / 322.6 MB, free: 2.141 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003028/0.00552, allocations: 178.5 kB / 322.8 MB, free: 1.965 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002716/0.005792, allocations: 179.6 kB / 323 MB, free: 1.789 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004724/0.006264, allocations: 0.6541 MB / 323.6 MB, free: 1.133 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002036/0.006468, allocations: 130 kB / 323.8 MB, free: 1.004 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003061/0.006774, allocations: 363.2 kB / 324.1 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001849/0.006959, allocations: 207.3 kB / 324.3 MB, free: 456 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.427e-05/0.007013, allocations: 52 kB / 324.4 MB, free: 404 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.42e-05/0.007057, allocations: 52 kB / 324.4 MB, free: 352 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.51e-05/0.007123, allocations: 119.5 kB / 324.5 MB, free: 232 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001111/0.007234, allocations: 191.5 kB / 324.7 MB, free: 40 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004191/0.007653, allocations: 0.6384 MB / 325.4 MB, free: 15.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.007656, allocations: 4 kB / 325.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.007657, allocations: 0 / 325.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.007663, allocations: 0 / 325.4 MB, free: 15.39 MB / 298.7 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.001021/0.008685, allocations: 0.7816 MB / 326.1 MB, free: 14.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.008725, allocations: 8.922 kB / 326.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.855e-05/0.008793, allocations: 94.7 kB / 326.2 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.182e-05/0.008855, allocations: 64.56 kB / 326.3 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003271/0.009182, allocations: 297.3 kB / 326.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.009211, allocations: 37.69 kB / 326.6 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.784e-05/0.009259, allocations: 48.38 kB / 326.7 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000504/0.009763, allocations: 439 kB / 327.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.009776, allocations: 3.938 kB / 327.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.725e-05/0.009803, allocations: 24 kB / 327.1 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.009814, allocations: 12 kB / 327.1 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005099/0.01032, allocations: 385 kB / 327.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.01179, allocations: 1.318 MB / 328.8 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004492/0.01224, allocations: 304.8 kB / 329.1 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002421/0.01248, allocations: 161 kB / 329.3 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.01251, allocations: 8.328 kB / 329.3 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.01252, allocations: 42.88 kB / 329.3 MB, free: 11.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 1.493e-06/0.01253, allocations: 0 / 329.3 MB, free: 11.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.001869/0.0144, allocations: 1.189 MB / 330.5 MB, free: 10.03 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.514e-05/0.01443, allocations: 67.89 kB / 330.6 MB, free: 9.949 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003004/0.01473, allocations: 409.4 kB / 331 MB, free: 9.539 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.01475, allocations: 37.7 kB / 331 MB, free: 9.496 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.01489, allocations: 304.6 kB / 331.3 MB, free: 9.195 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.094e-05/0.01498, allocations: 190.3 kB / 331.5 MB, free: 9.008 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.01509, allocations: 110.4 kB / 331.6 MB, free: 8.895 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.756e-05/0.01518, allocations: 358.7 kB / 332 MB, free: 8.535 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002485/0.01543, allocations: 181.2 kB / 332.2 MB, free: 8.355 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003009/0.01573, allocations: 306.2 kB / 332.5 MB, free: 8.016 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006786/0.01641, allocations: 496.2 kB / 332.9 MB, free: 7.492 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.01642, allocations: 4 kB / 332.9 MB, free: 7.488 MB / 298.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0008337/0.01725, allocations: 0.7368 MB / 333.7 MB, free: 6.738 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.01727, allocations: 8 kB / 333.7 MB, free: 6.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.01727, allocations: 3.938 kB / 333.7 MB, free: 6.727 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003432/0.01762, allocations: 185.5 kB / 333.9 MB, free: 6.539 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002466/0.01786, allocations: 107.9 kB / 334 MB, free: 6.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002551/0.02041, allocations: 4.027 MB / 338 MB, free: 2.184 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001826/0.0206, allocations: 23.98 kB / 338 MB, free: 2.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.02062, allocations: 24 kB / 338.1 MB, free: 2.137 MB / 298.7 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.0001435/0.02076, allocations: 176.7 kB / 338.2 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.48e-05/0.02081, allocations: 51.67 kB / 338.3 MB, free: 1.906 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.908e-05/0.02088, allocations: 65.02 kB / 338.3 MB, free: 1.844 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.02088, allocations: 8.062 kB / 338.3 MB, free: 1.836 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.02089, allocations: 7.938 kB / 338.4 MB, free: 1.828 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.0209, allocations: 3.984 kB / 338.4 MB, free: 1.824 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001317/0.02221, allocations: 1.203 MB / 339.6 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.02222, allocations: 4 kB / 339.6 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001431/0.02236, allocations: 67.89 kB / 339.6 MB, free: 492 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002376/0.0226, allocations: 165.7 kB / 339.8 MB, free: 320 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.02262, allocations: 16 kB / 339.8 MB, free: 304 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002374/0.02499, allocations: 3.864 MB / 343.7 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.02499, allocations: 4.141 kB / 343.7 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006875/0.02568, allocations: 0.6926 MB / 344.4 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.35e-05/0.02572, allocations: 51.66 kB / 344.4 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.812e-05/0.02575, allocations: 15.94 kB / 344.4 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.02589, allocations: 15.98 kB / 344.5 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.523e-05/0.02597, allocations: 52.34 kB / 344.5 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/0.02598, allocations: 20 kB / 344.5 MB, free: 11.32 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001902/0.02617, allocations: 275.2 kB / 344.8 MB, free: 11.05 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.02617, allocations: 0 / 344.8 MB, free: 11.05 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004361/0.02661, allocations: 152 kB / 344.9 MB, free: 10.91 MB / 314.7 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.0008843/0.02749, allocations: 1.233 MB / 346.2 MB, free: 9.625 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008717/0.02836, allocations: 0.7664 MB / 346.9 MB, free: 8.832 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.02837, allocations: 0 / 346.9 MB, free: 8.832 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000579/0.02894, allocations: 0.5039 MB / 347.4 MB, free: 8.301 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003018/0.02925, allocations: 43.47 kB / 347.5 MB, free: 8.266 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004188/0.03343, allocations: 4.647 MB / 352.1 MB, free: 3.418 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001603/0.03359, allocations: 259 kB / 352.4 MB, free: 3.141 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001102/0.0337, allocations: 44.36 kB / 352.4 MB, free: 3.098 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/0.03386, allocations: 180.4 kB / 352.6 MB, free: 2.922 MB / 314.7 MB Notification: Performance of SimCode: time 5.01e-07/0.03386, allocations: 0 / 352.6 MB, free: 2.922 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02449/0.05835, allocations: 10.62 MB / 363.2 MB, free: 8.457 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.621/7.679, allocations: 7.125 kB / 363.2 MB, free: 8.453 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv. Warning: Get data of variable magFluxSensor.Phi from file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv failed! Error: Could not read variable voltageSensor.v in file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv. Warning: Get data of variable voltageSensor.v from file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.39089966006577]