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.001368/0.001368, allocations: 112.7 kB / 17.78 MB, free: 5.281 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.001343/0.001343, allocations: 180.9 kB / 18.71 MB, free: 4.363 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.467/1.467, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2241/0.2241, allocations: 44.19 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 63.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3243, allocations: 60.83 MB / 0.5184 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.00256/0.3269, allocations: 1.706 MB / 0.5201 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001482/0.3271, allocations: 84.73 kB / 0.5202 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.524e-05/0.3272, allocations: 2.219 kB / 0.5202 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.338e-05/0.3272, allocations: 12.33 kB / 0.5202 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.752e-05/0.3273, allocations: 25.86 kB / 0.5202 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001303/0.3274, allocations: 27.81 kB / 0.5202 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000189/0.3276, allocations: 107.2 kB / 0.5203 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001932/0.3278, allocations: 56.52 kB / 0.5204 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.137e-05/0.3279, allocations: 41.95 kB / 0.5204 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.876e-05/0.328, allocations: 51.59 kB / 0.5205 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.847e-05/0.328, allocations: 10.28 kB / 0.5205 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.487e-05/0.3281, allocations: 11.47 kB / 0.5205 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.018e-05/0.3281, allocations: 26.83 kB / 0.5205 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.313e-05/0.3282, allocations: 47.42 kB / 0.5206 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000167/0.3283, allocations: 118.5 kB / 0.5207 GB, free: 1.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.3283, allocations: 0 / 0.5207 GB, free: 1.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3283, allocations: 0 / 0.5207 GB, free: 1.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.3284, allocations: 1.188 kB / 0.5207 GB, free: 1.77 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.0005612/0.3289, allocations: 421.6 kB / 0.5211 GB, free: 1.371 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.329, allocations: 9.062 kB / 0.5211 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.903e-05/0.329, allocations: 44.78 kB / 0.5211 GB, free: 1.324 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.274e-05/0.3291, allocations: 14.41 kB / 0.5211 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.135e-05/0.3291, allocations: 181.4 kB / 0.5213 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.3292, allocations: 5.438 kB / 0.5213 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.9e-05/0.3292, allocations: 9.812 kB / 0.5213 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003292/0.3295, allocations: 125 kB / 0.5215 GB, free: 1.039 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.3295, allocations: 3.938 kB / 0.5215 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.3296, allocations: 5.156 kB / 0.5215 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.3296, allocations: 3.391 kB / 0.5215 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003714/0.33, allocations: 109 kB / 0.5216 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000734/0.3307, allocations: 486.2 kB / 0.522 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00025/0.331, allocations: 81.45 kB / 0.5221 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002503/0.3312, allocations: 63.8 kB / 0.5222 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.3312, allocations: 1.25 kB / 0.5222 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.3313, allocations: 44.34 kB / 0.5222 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 1.363e-06/0.3313, allocations: 0 / 0.5222 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008444/0.3321, allocations: 260.1 kB / 0.5225 GB, free: 340 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.22e-05/0.3322, allocations: 52.44 kB / 0.5225 GB, free: 276 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.194e-05/0.3323, allocations: 122.8 kB / 0.5226 GB, free: 164 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.021e-05/0.3323, allocations: 27.47 kB / 0.5227 GB, free: 132 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.557e-05/0.3323, allocations: 112.3 kB / 0.5228 GB, free: 20 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.969e-05/0.3324, allocations: 24.91 kB / 0.5228 GB, free: 0 / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.025e-05/0.3324, allocations: 18.78 kB / 0.5228 GB, free: 15.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.3326, allocations: 323.2 kB / 0.5231 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.3328, allocations: 34.89 kB / 0.5231 GB, free: 15.65 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.333, allocations: 61.19 kB / 0.5232 GB, free: 15.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003414/0.3333, allocations: 100.8 kB / 0.5233 GB, free: 15.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.3333, allocations: 3.938 kB / 0.5233 GB, free: 15.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004525/0.3338, allocations: 144.2 kB / 0.5234 GB, free: 15.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.3338, allocations: 4.656 kB / 0.5234 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.3338, allocations: 1.438 kB / 0.5234 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001704/0.334, allocations: 23.95 kB / 0.5235 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.3341, allocations: 21.36 kB / 0.5235 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001308/0.3355, allocations: 1.402 MB / 0.5249 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.3356, allocations: 22.48 kB / 0.5249 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.3356, allocations: 1.5 kB / 0.5249 GB, free: 14.05 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.0001099/0.3357, allocations: 123.1 kB / 0.525 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.018e-05/0.3357, allocations: 10.83 kB / 0.525 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.186e-05/0.3358, allocations: 11.38 kB / 0.525 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.3358, allocations: 1.406 kB / 0.525 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.3358, allocations: 1.469 kB / 0.525 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.3358, allocations: 8.578 kB / 0.525 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007193/0.3365, allocations: 427.5 kB / 0.5254 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.3365, allocations: 3.938 kB / 0.5254 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.259e-05/0.3366, allocations: 15.31 kB / 0.5255 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.609e-05/0.3367, allocations: 23.14 kB / 0.5255 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.3367, allocations: 1.312 kB / 0.5255 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001141/0.3379, allocations: 1.411 MB / 0.5269 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3379, allocations: 0.5156 kB / 0.5269 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004912/0.3384, allocations: 243.1 kB / 0.5271 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/0.3385, allocations: 83.78 kB / 0.5272 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.3385, allocations: 6.469 kB / 0.5272 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.3386, allocations: 12.23 kB / 0.5272 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.123e-05/0.3387, allocations: 9.875 kB / 0.5272 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/0.3387, allocations: 6.266 kB / 0.5272 GB, free: 11.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.151e-05/0.3388, allocations: 101.1 kB / 0.5273 GB, free: 11.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3388, allocations: 0 / 0.5273 GB, free: 11.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002751/0.3391, 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.0008758/0.34, allocations: 0.7619 MB / 0.5281 GB, free: 11.01 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005646/0.3405, allocations: 208.6 kB / 0.5283 GB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3405, allocations: 0 / 0.5283 GB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000283/0.3408, allocations: 164.2 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.0003358/0.3412, allocations: 12.72 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.002303/0.3435, allocations: 1.6 MB / 0.53 GB, free: 9.371 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.3439, allocations: 0.7007 MB / 0.5307 GB, free: 8.672 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.532e-05/0.3439, allocations: 2.234 kB / 0.5307 GB, free: 8.672 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.498e-05/0.344, allocations: 24.97 kB / 0.5307 GB, free: 8.652 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.344, allocations: 0 / 0.5307 GB, free: 8.652 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03202/0.376, allocations: 2.389 MB / 0.533 GB, free: 7.559 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.936/10.31, allocations: 4.703 kB / 0.533 GB, free: 7.559 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