Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.001332/0.001332, allocations: 108.6 kB / 18.49 MB, free: 4.543 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.001334/0.001334, allocations: 197 kB / 21.43 MB, free: 1.609 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.425/1.425, allocations: 225.6 MB / 249.8 MB, free: 3.734 MB / 190.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.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 47.92 kB / 366.4 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08631/0.08775, allocations: 52.14 MB / 418.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.006347/0.09409, allocations: 5.098 MB / 423.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003504/0.0976, allocations: 2.113 MB / 425.7 MB, free: 5.355 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003357/0.09793, allocations: 16 kB / 425.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002986/0.1009, allocations: 1.406 MB / 427.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001258/0.1022, allocations: 0.5787 MB / 427.7 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001954/0.1041, allocations: 1.059 MB / 428.8 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008908/0.105, allocations: 0.7663 MB / 429.5 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007879/0.1058, allocations: 0.5051 MB / 430 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004501/0.1063, allocations: 350.8 kB / 430.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004666/0.1067, allocations: 430.3 kB / 430.8 MB, free: 248 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.907e-05/0.1068, allocations: 68 kB / 430.9 MB, free: 180 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007622/0.1076, allocations: 391.6 kB / 431.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.1077, allocations: 167.4 kB / 431.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003436/0.1081, allocations: 382.1 kB / 431.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001444/0.1095, allocations: 1.203 MB / 433 MB, free: 14.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.1095, allocations: 0 / 433 MB, free: 14.05 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1095, allocations: 4 kB / 433 MB, free: 14.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.1095, allocations: 0 / 433 MB, free: 14.04 MB / 366.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.004389/0.1139, allocations: 1.473 MB / 434.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.114, allocations: 11.89 kB / 434.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.188e-05/0.114, allocations: 22.19 kB / 434.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001647/0.1141, allocations: 131.4 kB / 434.6 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002521/0.1167, allocations: 388.1 kB / 435 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002677/0.1169, allocations: 263.9 kB / 435.3 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.51e-05/0.117, allocations: 66.38 kB / 435.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/0.1171, allocations: 87.94 kB / 435.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.1188, allocations: 0.8757 MB / 436.3 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3e-05/0.1188, allocations: 8 kB / 436.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.861e-05/0.1189, allocations: 28 kB / 436.3 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.221e-05/0.1189, allocations: 24 kB / 436.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001818/0.1208, allocations: 0.8081 MB / 437.2 MB, free: 9.766 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004245/0.125, allocations: 2.943 MB / 440.1 MB, free: 6.633 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.1263, allocations: 0.9606 MB / 441.1 MB, free: 5.555 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005251/0.1268, allocations: 222.4 kB / 441.3 MB, free: 5.336 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001055/0.1269, allocations: 93.64 kB / 441.4 MB, free: 5.227 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/0.1269, allocations: 39.12 kB / 441.4 MB, free: 5.176 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.594e-06/0.1269, allocations: 3.938 kB / 441.4 MB, free: 5.172 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.008/0.1349, allocations: 2.428 MB / 443.8 MB, free: 2.652 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.916e-05/0.135, allocations: 85.67 kB / 443.9 MB, free: 2.551 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003476/0.1353, allocations: 320.5 kB / 444.2 MB, free: 2.227 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.373e-05/0.1354, allocations: 33.7 kB / 444.3 MB, free: 2.188 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002309/0.1356, allocations: 379.9 kB / 444.6 MB, free: 1.809 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001729/0.1358, allocations: 218.1 kB / 444.9 MB, free: 1.594 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002248/0.136, allocations: 150.5 kB / 445 MB, free: 1.441 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.1362, allocations: 354.7 kB / 445.4 MB, free: 1.086 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008169/0.137, allocations: 277.8 kB / 445.6 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009758/0.138, allocations: 0.5042 MB / 446.1 MB, free: 208 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1675/0.3055, allocations: 0.8142 MB / 446.9 MB, free: 29.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.3055, allocations: 1.219 kB / 446.9 MB, free: 29.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002015/0.3075, allocations: 0.9101 MB / 447.9 MB, free: 29.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.3076, allocations: 9.438 kB / 447.9 MB, free: 29.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.3076, allocations: 4.812 kB / 447.9 MB, free: 29.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00025/0.3078, allocations: 73.17 kB / 447.9 MB, free: 29.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008143/0.3086, allocations: 207.8 kB / 448.1 MB, free: 29.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001378/0.31, allocations: 2.864 MB / 451 MB, free: 26.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006425/0.3106, allocations: 62.73 kB / 451.1 MB, free: 26.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.736e-05/0.3107, allocations: 38.2 kB / 451.1 MB, free: 26.58 MB / 366.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.0002344/0.3109, allocations: 214.4 kB / 451.3 MB, free: 26.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.89e-05/0.311, allocations: 45.84 kB / 451.4 MB, free: 26.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001823/0.3128, allocations: 0.7486 MB / 452.1 MB, free: 26.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.3128, allocations: 4.688 kB / 452.1 MB, free: 26.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3129, allocations: 6.516 kB / 452.1 MB, free: 26.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.848e-06/0.3129, allocations: 6.281 kB / 452.1 MB, free: 26.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002481/0.3153, allocations: 1.418 MB / 453.5 MB, free: 26.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3153, allocations: 1.281 kB / 453.5 MB, free: 26.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000661/0.316, allocations: 137.8 kB / 453.7 MB, free: 26.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001662/0.3162, allocations: 59.59 kB / 453.7 MB, free: 26.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.197e-05/0.3162, allocations: 18.16 kB / 453.8 MB, free: 26.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001272/0.3175, allocations: 2.858 MB / 456.6 MB, free: 23.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.3175, allocations: 1.891 kB / 456.6 MB, free: 23.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002544/0.32, allocations: 1.092 MB / 457.7 MB, free: 22.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/0.3202, allocations: 164.4 kB / 457.9 MB, free: 22.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.759e-05/0.3203, allocations: 11.59 kB / 457.9 MB, free: 22.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005188/0.3208, allocations: 46.45 kB / 457.9 MB, free: 22.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001457/0.3209, allocations: 46.59 kB / 458 MB, free: 22.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.063e-05/0.321, allocations: 24.7 kB / 458 MB, free: 22.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002623/0.3213, allocations: 219.9 kB / 458.2 MB, free: 22.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3213, allocations: 0.5312 kB / 458.2 MB, free: 22.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007793/0.322, allocations: 176.9 kB / 458.4 MB, free: 22.62 MB / 366.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.002849/0.3249, allocations: 1.699 MB / 460.1 MB, free: 21.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002003/0.3269, allocations: 0.8811 MB / 461 MB, free: 21.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3269, allocations: 0 / 461 MB, free: 21.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009529/0.3278, allocations: 0.5317 MB / 461.5 MB, free: 20.85 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004363/0.3283, allocations: 48.5 kB / 461.5 MB, free: 20.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008304/0.3366, allocations: 5.218 MB / 466.8 MB, free: 17.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.3369, allocations: 0.8824 MB / 467.6 MB, free: 16.95 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003765/0.3373, allocations: 98.73 kB / 467.7 MB, free: 16.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002949/0.3376, allocations: 230.7 kB / 468 MB, free: 16.75 MB / 366.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3376, allocations: 0 / 468 MB, free: 16.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04042/0.378, allocations: 11.5 MB / 479.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/12.92, allocations: 16.72 kB / 479.5 MB, free: 13 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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: 15.335799174034037]