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.001563/0.001563, allocations: 109.5 kB / 17.78 MB, free: 5.289 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.002028/0.002029, allocations: 188.8 kB / 18.71 MB, free: 4.371 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.418/1.418, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2128/0.2128, allocations: 44.18 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 63.91 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3847/0.3863, allocations: 60.83 MB / 0.5184 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.002831/0.3891, allocations: 1.718 MB / 0.5201 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001515/0.3893, allocations: 85.56 kB / 0.5202 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.64e-05/0.3894, allocations: 2.312 kB / 0.5202 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.874e-05/0.3894, allocations: 12.34 kB / 0.5202 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.841e-05/0.3895, allocations: 25.98 kB / 0.5202 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001032/0.3896, allocations: 27.81 kB / 0.5202 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001415/0.3898, allocations: 106.4 kB / 0.5203 GB, free: 1.957 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001738/0.39, allocations: 52.8 kB / 0.5204 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.222e-05/0.39, allocations: 49.73 kB / 0.5204 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.217e-05/0.3901, allocations: 51.77 kB / 0.5205 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.578e-05/0.3902, allocations: 11.12 kB / 0.5205 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.98e-05/0.3902, allocations: 14.53 kB / 0.5205 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.797e-05/0.3902, allocations: 23.39 kB / 0.5205 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.562e-05/0.3903, allocations: 51.17 kB / 0.5206 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001629/0.3905, allocations: 120.9 kB / 0.5207 GB, free: 1.777 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3905, allocations: 0 / 0.5207 GB, free: 1.777 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3905, allocations: 0.875 kB / 0.5207 GB, free: 1.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.3905, allocations: 0 / 0.5207 GB, free: 1.777 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.0005743/0.3911, allocations: 418.3 kB / 0.5211 GB, free: 1.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.3911, allocations: 9.25 kB / 0.5211 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.512e-05/0.3912, allocations: 45.02 kB / 0.5211 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.425e-05/0.3912, allocations: 9.688 kB / 0.5211 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.3913, allocations: 178.3 kB / 0.5213 GB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.3913, allocations: 3.812 kB / 0.5213 GB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.349e-05/0.3914, allocations: 11.05 kB / 0.5213 GB, free: 1.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003521/0.3917, allocations: 124.8 kB / 0.5214 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.3917, allocations: 8.812 kB / 0.5214 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.3918, allocations: 4.875 kB / 0.5215 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.353e-06/0.3918, allocations: 2.469 kB / 0.5215 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003868/0.3922, allocations: 104.9 kB / 0.5216 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007742/0.393, allocations: 486.9 kB / 0.522 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002615/0.3932, allocations: 81.34 kB / 0.5221 GB, free: 0.582 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002521/0.3935, allocations: 63.67 kB / 0.5222 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.3935, allocations: 5.25 kB / 0.5222 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.765e-05/0.3935, allocations: 39.16 kB / 0.5222 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.3935, allocations: 1.156 kB / 0.5222 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008311/0.3944, allocations: 264.1 kB / 0.5225 GB, free: 356 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.916e-05/0.3944, allocations: 53.64 kB / 0.5225 GB, free: 292 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.489e-05/0.3945, allocations: 126.5 kB / 0.5226 GB, free: 176 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.087e-06/0.3945, allocations: 25.7 kB / 0.5227 GB, free: 144 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.122e-05/0.3946, allocations: 105 kB / 0.5228 GB, free: 40 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.827e-05/0.3946, allocations: 20.45 kB / 0.5228 GB, free: 24 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.762e-05/0.3947, allocations: 19.77 kB / 0.5228 GB, free: 4 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.3948, allocations: 321.8 kB / 0.5231 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001701/0.395, allocations: 35.09 kB / 0.5231 GB, free: 15.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.3952, allocations: 60.31 kB / 0.5232 GB, free: 15.64 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003298/0.3955, allocations: 109.3 kB / 0.5233 GB, free: 15.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3955, allocations: 0 / 0.5233 GB, free: 15.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004326/0.396, allocations: 147.1 kB / 0.5234 GB, free: 15.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.396, allocations: 6.312 kB / 0.5234 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.396, allocations: 1.125 kB / 0.5234 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001457/0.3962, allocations: 23.14 kB / 0.5235 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.3963, allocations: 17.42 kB / 0.5235 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001053/0.3974, allocations: 1.403 MB / 0.5248 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.3975, allocations: 16.86 kB / 0.5249 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.3975, allocations: 3 kB / 0.5249 GB, free: 14.07 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.0001079/0.3976, allocations: 123.8 kB / 0.525 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.048e-05/0.3976, allocations: 10.42 kB / 0.525 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.208e-05/0.3977, allocations: 11.61 kB / 0.525 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.3977, allocations: 4.688 kB / 0.525 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.3977, allocations: 1.312 kB / 0.525 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3977, allocations: 0.7031 kB / 0.525 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006911/0.3984, allocations: 426.7 kB / 0.5254 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.3984, allocations: 5.734 kB / 0.5254 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.324e-05/0.3985, allocations: 15.91 kB / 0.5254 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.303e-05/0.3986, allocations: 21.83 kB / 0.5255 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.3986, allocations: 1.938 kB / 0.5255 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009886/0.3996, allocations: 1.411 MB / 0.5268 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3996, allocations: 0 / 0.5268 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004473/0.4001, allocations: 242.7 kB / 0.5271 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.118e-05/0.4001, allocations: 89.41 kB / 0.5272 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.4001, allocations: 6.438 kB / 0.5272 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.4003, allocations: 15 kB / 0.5272 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.086e-05/0.4003, allocations: 6.078 kB / 0.5272 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.4003, allocations: 6.031 kB / 0.5272 GB, free: 11.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.311e-05/0.4004, allocations: 97.78 kB / 0.5273 GB, free: 11.74 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4004, allocations: 0 / 0.5273 GB, free: 11.74 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002562/0.4007, allocations: 18.28 kB / 0.5273 GB, free: 11.74 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.0008346/0.4015, allocations: 0.766 MB / 0.528 GB, free: 11.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005299/0.402, allocations: 211.4 kB / 0.5282 GB, free: 10.9 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4021, allocations: 1.75 kB / 0.5283 GB, free: 10.9 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002696/0.4023, allocations: 155.8 kB / 0.5284 GB, free: 10.78 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.4026, allocations: 20.58 kB / 0.5284 GB, free: 10.76 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002091/0.4047, allocations: 1.601 MB / 0.53 GB, free: 9.398 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.405, allocations: 0.7008 MB / 0.5307 GB, free: 8.699 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.557e-05/0.4051, allocations: 1.938 kB / 0.5307 GB, free: 8.699 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.122e-05/0.4051, allocations: 24.86 kB / 0.5307 GB, free: 8.68 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4051, allocations: 0 / 0.5307 GB, free: 8.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02001/0.4251, allocations: 2.426 MB / 0.5331 GB, free: 7.586 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.362/9.787, allocations: 2.281 kB / 0.5331 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,reluctance.V_m,reluctance.Phi,permeance.V_m,permeance.Phi Variables in the result:ground.port.Phi,ground.port.V_m,magFluxSource.Phi,magFluxSource.V_m,magFluxSource.port_n.Phi,magFluxSource.port_n.V_m,magFluxSource.port_p.Phi,magFluxSource.port_p.V_m,permeance.G_m,permeance.Phi,permeance.V_m,permeance.port_n.Phi,permeance.port_n.V_m,permeance.port_p.Phi,permeance.port_p.V_m,rampPermeance.duration,rampPermeance.height,rampPermeance.offset,rampPermeance.startTime,rampPermeance.y,rampReluctance.duration,rampReluctance.height,rampReluctance.offset,rampReluctance.startTime,rampReluctance.y,reluctance.Phi,reluctance.R_m,reluctance.V_m,reluctance.port_n.Phi,reluctance.port_n.V_m,reluctance.port_p.Phi,reluctance.port_p.V_m,time