Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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.001291/0.001291, allocations: 112.2 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.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.001364/0.001364, allocations: 181.3 kB / 23.72 MB, free: 4.699 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.387/1.387, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001746/0.001746, allocations: 51.92 kB / 370.5 MB, free: 9.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2442, allocations: 52.19 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.008142/0.2523, allocations: 6.76 MB / 429.4 MB, free: 7.789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004031/0.2563, allocations: 2.421 MB / 431.8 MB, free: 5.355 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000539/0.2569, allocations: 20 kB / 431.8 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004354/0.2612, allocations: 1.902 MB / 433.8 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001716/0.2629, allocations: 0.7144 MB / 434.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002429/0.2654, allocations: 1.174 MB / 435.6 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001567/0.2669, allocations: 1.121 MB / 436.8 MB, free: 424 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001448/0.2684, allocations: 0.838 MB / 437.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007524/0.2691, allocations: 498.1 kB / 438.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009639/0.2701, allocations: 0.6186 MB / 438.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002239/0.2703, allocations: 107.9 kB / 438.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00101/0.2713, allocations: 427.6 kB / 439.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002671/0.2716, allocations: 251.1 kB / 439.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005877/0.2722, allocations: 0.5558 MB / 440 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002007/0.2742, allocations: 1.661 MB / 441.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2742, allocations: 0 / 441.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2742, allocations: 0 / 441.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.562e-05/0.2742, allocations: 0 / 441.7 MB, free: 11.45 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.005957/0.2802, allocations: 1.975 MB / 443.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.2802, allocations: 8.031 kB / 443.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002403/0.2805, allocations: 186.4 kB / 443.9 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003411/0.2839, allocations: 0.5153 MB / 444.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003189/0.2842, allocations: 253 kB / 444.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001066/0.2843, allocations: 98.95 kB / 444.7 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000223/0.2845, allocations: 128.4 kB / 444.8 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002495/0.287, allocations: 1.303 MB / 446.1 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.512e-05/0.2871, allocations: 3.953 kB / 446.1 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001092/0.2872, allocations: 52 kB / 446.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.269e-05/0.2872, allocations: 32 kB / 446.2 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002633/0.2898, allocations: 1.205 MB / 447.4 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00675/0.2966, allocations: 3.997 MB / 451.4 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002102/0.2987, allocations: 1.154 MB / 452.6 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009312/0.2996, allocations: 457.4 kB / 453 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001051/0.2997, allocations: 28.88 kB / 453.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.571e-05/0.2998, allocations: 55.56 kB / 453.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 2.806e-06/0.2998, allocations: 3.938 kB / 453.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.01074/0.3105, allocations: 3.555 MB / 456.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.749e-05/0.3106, allocations: 90.11 kB / 456.8 MB, free: 12.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004679/0.3111, allocations: 397.5 kB / 457.1 MB, free: 11.65 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.25e-05/0.3111, allocations: 45.7 kB / 457.2 MB, free: 11.6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003188/0.3114, allocations: 468.6 kB / 457.6 MB, free: 11.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003577/0.3118, allocations: 448.1 kB / 458.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003417/0.3121, allocations: 235.5 kB / 458.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.3123, allocations: 370.8 kB / 458.7 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001086/0.3134, allocations: 435.8 kB / 459.1 MB, free: 9.656 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001311/0.3147, allocations: 0.6996 MB / 459.8 MB, free: 8.855 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002424/0.3171, allocations: 1.179 MB / 461 MB, free: 7.582 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.114e-05/0.3172, allocations: 7.938 kB / 461 MB, free: 7.574 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003163/0.3203, allocations: 1.467 MB / 462.5 MB, free: 6.094 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.3203, allocations: 8 kB / 462.5 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.3204, allocations: 4 kB / 462.5 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005557/0.3209, allocations: 205.6 kB / 462.7 MB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.3221, allocations: 287.6 kB / 463 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004512/0.3267, allocations: 4.153 MB / 467.1 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008658/0.3275, allocations: 84 kB / 467.2 MB, free: 1.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.3276, allocations: 55.98 kB / 467.2 MB, free: 1.078 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (146): * Single equations (assignments): 144 * 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.0004415/0.3281, allocations: 261.5 kB / 467.5 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/0.3282, allocations: 75.53 kB / 467.6 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003141/0.3314, allocations: 1.343 MB / 468.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/0.3314, allocations: 15.94 kB / 468.9 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/0.3314, allocations: 4 kB / 468.9 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.3314, allocations: 11.92 kB / 468.9 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00484/0.3362, allocations: 2.574 MB / 471.5 MB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.3362, allocations: 0 / 471.5 MB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/0.3372, allocations: 223.7 kB / 471.7 MB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000455/0.3377, allocations: 165.6 kB / 471.9 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.31e-05/0.3378, allocations: 31.92 kB / 471.9 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004134/0.3419, allocations: 3.977 MB / 475.9 MB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.3419, allocations: 4 kB / 475.9 MB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004065/0.346, allocations: 1.88 MB / 477.8 MB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003869/0.3464, allocations: 151.4 kB / 477.9 MB, free: 6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000125/0.3465, allocations: 20 kB / 478 MB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007112/0.3472, allocations: 59.95 kB / 478 MB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/0.3474, allocations: 92.81 kB / 478.1 MB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.511e-05/0.3474, allocations: 40.05 kB / 478.1 MB, free: 5.793 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003077/0.3478, allocations: 275.1 kB / 478.4 MB, free: 5.523 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3478, allocations: 0 / 478.4 MB, free: 5.523 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001089/0.3488, allocations: 304 kB / 478.7 MB, free: 5.227 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (106): * Single equations (assignments): 104 * 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.00452/0.3534, allocations: 2.478 MB / 481.2 MB, free: 2.703 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003123/0.3565, allocations: 1.395 MB / 482.6 MB, free: 1.281 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3565, allocations: 0 / 482.6 MB, free: 1.281 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001563/0.3581, allocations: 0.823 MB / 483.4 MB, free: 440 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000574/0.3586, allocations: 75.98 kB / 483.5 MB, free: 368 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01463/0.3733, allocations: 7.637 MB / 491.1 MB, free: 8.406 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007729/0.374, allocations: 1.005 MB / 492.1 MB, free: 7.371 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006198/0.3746, allocations: 146.6 kB / 492.3 MB, free: 7.223 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005604/0.3752, allocations: 351.3 kB / 492.6 MB, free: 6.879 MB / 398.1 MB Notification: Performance of SimCode: time 1.703e-06/0.3752, allocations: 0 / 492.6 MB, free: 6.879 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05998/0.4352, allocations: 18.38 MB / 0.499 GB, free: 4.668 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.27/24.7, allocations: 16.97 kB / 0.499 GB, free: 4.652 MB / 414.1 MB " [Timeout remaining time 635] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 27.005017685936764]