Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 114.6 kB / 17.78 MB, free: 5.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 185 kB / 18.72 MB, free: 4.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2224/0.2224, allocations: 44.18 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002067/0.002068, allocations: 71.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3401, allocations: 60.8 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.002996/0.3431, allocations: 1.726 MB / 0.5201 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001608/0.3433, allocations: 74.61 kB / 0.5202 GB, free: 2.035 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.676e-05/0.3434, allocations: 6.156 kB / 0.5202 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.8e-05/0.3434, allocations: 12.16 kB / 0.5202 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.807e-05/0.3435, allocations: 21.66 kB / 0.5202 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.522e-05/0.3436, allocations: 27.78 kB / 0.5202 GB, free: 1.992 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001378/0.3438, allocations: 114.6 kB / 0.5203 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.344, allocations: 47.89 kB / 0.5204 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.432e-05/0.344, allocations: 42.53 kB / 0.5204 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.086e-05/0.3441, allocations: 55.44 kB / 0.5205 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.324e-05/0.3441, allocations: 11.44 kB / 0.5205 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.936e-05/0.3442, allocations: 10.69 kB / 0.5205 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.675e-05/0.3442, allocations: 27.03 kB / 0.5205 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.564e-05/0.3443, allocations: 50.34 kB / 0.5206 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001787/0.3444, allocations: 111.4 kB / 0.5207 GB, free: 1.773 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3445, allocations: 8.969 kB / 0.5207 GB, free: 1.766 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3445, allocations: 0 / 0.5207 GB, free: 1.766 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.3445, allocations: 3.938 kB / 0.5207 GB, free: 1.762 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0006329/0.3451, allocations: 417.8 kB / 0.5211 GB, free: 1.367 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.225e-05/0.3452, allocations: 9.859 kB / 0.5211 GB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.286e-05/0.3452, allocations: 44.5 kB / 0.5211 GB, free: 1.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.527e-05/0.3453, allocations: 14.22 kB / 0.5211 GB, free: 1.312 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.675e-05/0.3454, allocations: 177 kB / 0.5213 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.3454, allocations: 12.66 kB / 0.5213 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.296e-05/0.3454, allocations: 6.125 kB / 0.5213 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003717/0.3458, allocations: 127.7 kB / 0.5215 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.3458, allocations: 4.688 kB / 0.5215 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.3459, allocations: 5.062 kB / 0.5215 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.3459, allocations: 2.438 kB / 0.5215 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003882/0.3463, allocations: 100.7 kB / 0.5216 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008199/0.3471, allocations: 483.1 kB / 0.522 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002593/0.3474, allocations: 86.17 kB / 0.5221 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002468/0.3476, allocations: 67.39 kB / 0.5222 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.3476, allocations: 1.531 kB / 0.5222 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.779e-05/0.3477, allocations: 39.3 kB / 0.5222 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 1.342e-06/0.3477, allocations: 0 / 0.5222 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008241/0.3485, allocations: 265.1 kB / 0.5225 GB, free: 340 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.462e-05/0.3485, allocations: 52.11 kB / 0.5225 GB, free: 276 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.133e-05/0.3486, allocations: 118.8 kB / 0.5226 GB, free: 168 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.3487, allocations: 27.59 kB / 0.5226 GB, free: 136 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.471e-05/0.3487, allocations: 116.2 kB / 0.5228 GB, free: 20 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.3487, allocations: 24.44 kB / 0.5228 GB, free: 0 / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.513e-05/0.3488, allocations: 19.55 kB / 0.5228 GB, free: 15.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.3489, allocations: 318.5 kB / 0.5231 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001708/0.3491, allocations: 39.08 kB / 0.5231 GB, free: 15.65 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001776/0.3493, allocations: 52.19 kB / 0.5232 GB, free: 15.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003253/0.3496, allocations: 109.9 kB / 0.5233 GB, free: 15.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.3497, allocations: 0 / 0.5233 GB, free: 15.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004544/0.3501, allocations: 143.6 kB / 0.5234 GB, free: 15.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.3501, allocations: 4.625 kB / 0.5234 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3502, allocations: 1.719 kB / 0.5234 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001644/0.3503, allocations: 26.94 kB / 0.5235 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.3505, allocations: 22.3 kB / 0.5235 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001203/0.3517, allocations: 1.403 MB / 0.5249 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.3518, allocations: 20.97 kB / 0.5249 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.3518, allocations: 14.53 kB / 0.5249 GB, free: 14.04 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001191/0.352, allocations: 115.1 kB / 0.525 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.314e-05/0.352, allocations: 10.8 kB / 0.525 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.339e-05/0.352, allocations: 11.2 kB / 0.525 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.352, allocations: 1.5 kB / 0.525 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.3521, allocations: 0 / 0.525 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.3521, allocations: 2.078 kB / 0.525 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007363/0.3528, allocations: 423 kB / 0.5254 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3528, allocations: 3.938 kB / 0.5254 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.782e-05/0.3529, allocations: 20.58 kB / 0.5255 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.795e-05/0.353, allocations: 23.59 kB / 0.5255 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.353, allocations: 4.031 kB / 0.5255 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009947/0.354, allocations: 1.403 MB / 0.5268 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.3541, allocations: 4.062 kB / 0.5269 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005068/0.3546, allocations: 244 kB / 0.5271 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.764e-05/0.3546, allocations: 84.91 kB / 0.5272 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.3547, allocations: 5.312 kB / 0.5272 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.3548, allocations: 11.78 kB / 0.5272 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.698e-05/0.3549, allocations: 10.03 kB / 0.5272 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.7e-06/0.3549, allocations: 1.5 kB / 0.5272 GB, free: 11.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.875e-05/0.3549, allocations: 97.62 kB / 0.5273 GB, free: 11.72 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3549, allocations: 0 / 0.5273 GB, free: 11.72 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002928/0.3552, allocations: 27.41 kB / 0.5273 GB, free: 11.71 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0008051/0.3561, allocations: 0.7668 MB / 0.5281 GB, free: 11.01 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005558/0.3566, allocations: 202.9 kB / 0.5283 GB, free: 10.88 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3566, allocations: 0 / 0.5283 GB, free: 10.88 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002709/0.3569, allocations: 172.3 kB / 0.5284 GB, free: 10.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003451/0.3573, allocations: 16.48 kB / 0.5284 GB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.3595, allocations: 1.605 MB / 0.53 GB, free: 9.367 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.3598, allocations: 0.6996 MB / 0.5307 GB, free: 8.668 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.463e-05/0.3599, allocations: 3.688 kB / 0.5307 GB, free: 8.668 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.363e-05/0.3599, allocations: 27.03 kB / 0.5307 GB, free: 8.645 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3599, allocations: 0 / 0.5307 GB, free: 8.645 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02363/0.3836, allocations: 2.38 MB / 0.533 GB, free: 7.586 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.449/9.832, allocations: 4.906 kB / 0.533 GB, free: 7.586 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/VariableComponents/VariableComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches