Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.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.001339/0.001339, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002256/0.002256, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.525/1.525, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2342/0.2342, allocations: 46.94 MB / 361.7 MB, free: 4.34 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 59.91 kB / 0.4969 GB, free: 7.918 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3222, allocations: 66.04 MB / 0.5614 GB, free: 4.352 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.004272/0.3265, allocations: 2.509 MB / 0.5639 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001925/0.3284, allocations: 1.121 MB / 0.5649 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.3285, allocations: 8 kB / 0.565 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001429/0.33, allocations: 0.4979 MB / 0.5654 GB, free: 196 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003381/0.3303, allocations: 111.2 kB / 0.5655 GB, free: 84 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.3313, allocations: 490.1 kB / 0.566 GB, free: 15.6 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003825/0.3317, allocations: 227 kB / 0.5662 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004612/0.3322, allocations: 228.3 kB / 0.5665 GB, free: 15.16 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002104/0.3324, allocations: 99.7 kB / 0.5665 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001778/0.3326, allocations: 131.5 kB / 0.5667 GB, free: 14.93 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.521e-05/0.3326, allocations: 24 kB / 0.5667 GB, free: 14.91 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003279/0.3329, allocations: 155.9 kB / 0.5668 GB, free: 14.75 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 4.473e-05/0.333, allocations: 43.84 kB / 0.5669 GB, free: 14.71 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.3331, allocations: 119.4 kB / 0.567 GB, free: 14.59 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005454/0.3336, allocations: 402.5 kB / 0.5674 GB, free: 14.2 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.748e-06/0.3336, allocations: 0 / 0.5674 GB, free: 14.2 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3336, allocations: 0 / 0.5674 GB, free: 14.2 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.092e-06/0.3337, allocations: 0 / 0.5674 GB, free: 14.2 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001436/0.3351, allocations: 0.556 MB / 0.5679 GB, free: 13.61 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.3351, allocations: 12.03 kB / 0.5679 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.997e-05/0.3352, allocations: 4.688 kB / 0.5679 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.187e-05/0.3352, allocations: 58.73 kB / 0.568 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003369/0.3356, allocations: 48.77 kB / 0.568 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.3357, allocations: 142.1 kB / 0.5682 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.014e-05/0.3357, allocations: 20.88 kB / 0.5682 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.123e-05/0.3358, allocations: 28.38 kB / 0.5682 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006835/0.3365, allocations: 290.5 kB / 0.5685 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.3365, allocations: 0 / 0.5685 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.616e-05/0.3365, allocations: 16 kB / 0.5685 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.3366, allocations: 4 kB / 0.5685 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006098/0.3372, allocations: 237.5 kB / 0.5687 GB, free: 12.72 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.3388, allocations: 0.9338 MB / 0.5697 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004995/0.3393, allocations: 205 kB / 0.5699 GB, free: 11.51 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003639/0.3397, allocations: 125.7 kB / 0.57 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000116/0.3398, allocations: 19.98 kB / 0.57 GB, free: 11.36 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.3398, allocations: 38.5 kB / 0.57 GB, free: 11.31 MB / 414.1 MB Notification: Performance of pre-optimization done (n=19): time 1.583e-06/0.3398, allocations: 3.938 kB / 0.57 GB, free: 11.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.00121/0.3411, allocations: 351.2 kB / 0.5704 GB, free: 10.95 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/0.3411, allocations: 77.11 kB / 0.5704 GB, free: 10.86 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.3413, allocations: 144 kB / 0.5706 GB, free: 10.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.138e-05/0.3413, allocations: 25.7 kB / 0.5706 GB, free: 10.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.915e-05/0.3414, allocations: 144.4 kB / 0.5707 GB, free: 10.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.232e-05/0.3415, allocations: 79.36 kB / 0.5708 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.649e-05/0.3415, allocations: 41.7 kB / 0.5709 GB, free: 10.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.3417, allocations: 326.8 kB / 0.5712 GB, free: 10.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002233/0.3419, allocations: 68.06 kB / 0.5712 GB, free: 10.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002687/0.3422, allocations: 125.9 kB / 0.5714 GB, free: 9.871 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00051/0.3427, allocations: 200.7 kB / 0.5715 GB, free: 9.656 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3427, allocations: 0 / 0.5715 GB, free: 9.656 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006927/0.3434, allocations: 278.9 kB / 0.5718 GB, free: 9.371 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.3434, allocations: 8 kB / 0.5718 GB, free: 9.363 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.3434, allocations: 0 / 0.5718 GB, free: 9.363 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002215/0.3436, allocations: 57.62 kB / 0.5719 GB, free: 9.301 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002019/0.3438, allocations: 39.97 kB / 0.5719 GB, free: 9.262 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002339/0.3462, allocations: 2.633 MB / 0.5745 GB, free: 6.395 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.3464, allocations: 39.77 kB / 0.5745 GB, free: 6.355 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.3464, allocations: 4 kB / 0.5745 GB, free: 6.352 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 17 * 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.000161/0.3465, allocations: 149.8 kB / 0.5747 GB, free: 6.195 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.352e-05/0.3466, allocations: 11.95 kB / 0.5747 GB, free: 6.184 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007053/0.3473, allocations: 271 kB / 0.5749 GB, free: 5.906 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3473, allocations: 0 / 0.5749 GB, free: 5.906 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3473, allocations: 4 kB / 0.5749 GB, free: 5.902 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3473, allocations: 0 / 0.5749 GB, free: 5.902 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001213/0.3485, allocations: 0.6178 MB / 0.5755 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.3485, allocations: 4 kB / 0.5756 GB, free: 5.215 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001862/0.3487, allocations: 31.97 kB / 0.5756 GB, free: 5.184 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001365/0.3489, allocations: 49.62 kB / 0.5756 GB, free: 5.129 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.3489, allocations: 8.062 kB / 0.5756 GB, free: 5.121 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002186/0.3511, allocations: 2.629 MB / 0.5782 GB, free: 2.266 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3511, allocations: 3.938 kB / 0.5782 GB, free: 2.262 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.3521, allocations: 0.518 MB / 0.5787 GB, free: 1.715 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.139e-05/0.3521, allocations: 15.91 kB / 0.5787 GB, free: 1.699 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.326e-05/0.3522, allocations: 4 kB / 0.5787 GB, free: 1.695 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002028/0.3524, allocations: 23.91 kB / 0.5788 GB, free: 1.672 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.471e-05/0.3524, allocations: 23.91 kB / 0.5788 GB, free: 1.648 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.3524, allocations: 4 kB / 0.5788 GB, free: 1.645 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.714e-05/0.3525, allocations: 107.3 kB / 0.5789 GB, free: 1.539 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3525, allocations: 4.062 kB / 0.5789 GB, free: 1.535 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004709/0.353, allocations: 83.77 kB / 0.579 GB, free: 1.453 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (magFluxSource.port_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 (15): * Single equations (assignments): 13 * 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.001453/0.3545, allocations: 1.078 MB / 0.58 GB, free: 348 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000904/0.3554, allocations: 416.6 kB / 0.5804 GB, free: 15.91 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3554, allocations: 4 kB / 0.5804 GB, free: 15.91 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004678/0.3558, allocations: 329.2 kB / 0.5807 GB, free: 15.56 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004347/0.3563, allocations: 8 kB / 0.5807 GB, free: 15.55 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003649/0.3599, allocations: 2.364 MB / 0.5831 GB, free: 13.05 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000405/0.3603, allocations: 0.7323 MB / 0.5838 GB, free: 12.29 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.447e-05/0.3604, allocations: 21.41 kB / 0.5838 GB, free: 12.27 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.3605, allocations: 59.41 kB / 0.5838 GB, free: 12.21 MB / 430.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3605, allocations: 0 / 0.5838 GB, free: 12.21 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03537/0.3959, allocations: 4.634 MB / 0.5884 GB, free: 7.727 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.76/12.15, allocations: 0 / 0.5884 GB, free: 7.727 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --stepSize=0.00019984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.1.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/QuasiStatic/FluxTubes/VariableComponents/VariableComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.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.34732736600563]