Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reluctance.abs_V_m|reluctance.abs_Phi|permeance.abs_V_m|permeance.abs_Phi|magFluxSource.gamma",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents") translateModel(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reluctance.abs_V_m|reluctance.abs_Phi|permeance.abs_V_m|permeance.abs_Phi|magFluxSource.gamma",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001077/0.001077, allocations: 116.9 kB / 18.4 MB, free: 4.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001093/0.001093, allocations: 204.5 kB / 19.35 MB, free: 3.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2045/0.2045, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 71.89 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1187, allocations: 62.44 MB / 481.5 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.003675/0.1224, allocations: 2.49 MB / 483.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.1239, allocations: 1.078 MB / 485 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.843e-05/0.124, allocations: 8 kB / 485 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001121/0.1252, allocations: 0.4979 MB / 485.5 MB, free: 460 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002121/0.1254, allocations: 107.2 kB / 485.6 MB, free: 352 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008314/0.1262, allocations: 490 kB / 486.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000288/0.1265, allocations: 223 kB / 486.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004224/0.127, allocations: 258.5 kB / 486.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001606/0.1271, allocations: 95.7 kB / 486.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001688/0.1273, allocations: 131.5 kB / 486.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.026e-05/0.1274, allocations: 20 kB / 486.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000273/0.1276, allocations: 159.8 kB / 487 MB, free: 15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.713e-05/0.1277, allocations: 39.86 kB / 487 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.1278, allocations: 119.5 kB / 487.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004396/0.1282, allocations: 410.7 kB / 487.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1283, allocations: 0 / 487.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1283, allocations: 0 / 487.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.1283, allocations: 4 kB / 487.5 MB, free: 14.43 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001186/0.1295, allocations: 0.6008 MB / 488.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.1295, allocations: 16.03 kB / 488.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003193/0.1298, allocations: 56.61 kB / 488.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.13, allocations: 188 kB / 488.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.192e-05/0.13, allocations: 16.94 kB / 488.4 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.882e-05/0.1301, allocations: 24.38 kB / 488.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005633/0.1306, allocations: 291.7 kB / 488.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.1307, allocations: 4 kB / 488.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.396e-05/0.1307, allocations: 12 kB / 488.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.1307, allocations: 8 kB / 488.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005147/0.1312, allocations: 233.5 kB / 489 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.1327, allocations: 0.9896 MB / 490 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005193/0.1332, allocations: 391.1 kB / 490.3 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002907/0.1336, allocations: 133.7 kB / 490.5 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002187/0.1338, allocations: 170.2 kB / 490.6 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.1338, allocations: 30.56 kB / 490.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.623e-06/0.1338, allocations: 4 kB / 490.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001142/0.135, allocations: 0.4999 MB / 491.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.135, allocations: 85.02 kB / 491.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.1352, allocations: 140.3 kB / 491.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.1352, allocations: 25.7 kB / 491.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.469e-05/0.1353, allocations: 144.1 kB / 491.6 MB, free: 10.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.206e-05/0.1353, allocations: 74.94 kB / 491.6 MB, free: 9.973 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.534e-05/0.1354, allocations: 37.7 kB / 491.7 MB, free: 9.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1355, allocations: 326.9 kB / 492 MB, free: 9.602 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001995/0.1358, allocations: 67.95 kB / 492.1 MB, free: 9.535 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002158/0.136, allocations: 121.8 kB / 492.2 MB, free: 9.395 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003955/0.1364, allocations: 204.7 kB / 492.4 MB, free: 9.176 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1364, allocations: 0 / 492.4 MB, free: 9.176 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005655/0.137, allocations: 283 kB / 492.6 MB, free: 8.887 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.137, allocations: 8 kB / 492.7 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.137, allocations: 0 / 492.7 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001957/0.1372, allocations: 49.69 kB / 492.7 MB, free: 8.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.1374, allocations: 43.91 kB / 492.7 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002112/0.1395, allocations: 2.848 MB / 495.6 MB, free: 5.652 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001497/0.1397, allocations: 23.83 kB / 495.6 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.1397, allocations: 8 kB / 495.6 MB, free: 5.621 MB / 366.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.0001491/0.1399, allocations: 145.4 kB / 495.8 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.389e-05/0.1399, allocations: 15.75 kB / 495.8 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006055/0.1405, allocations: 268.2 kB / 496 MB, free: 5.184 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.1405, allocations: 4.109 kB / 496.1 MB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.1406, allocations: 7.938 kB / 496.1 MB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.1406, allocations: 4 kB / 496.1 MB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.1417, allocations: 0.6446 MB / 496.7 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.1417, allocations: 7.938 kB / 496.7 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.1419, allocations: 35.95 kB / 496.7 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001087/0.142, allocations: 41.7 kB / 496.8 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.142, allocations: 8 kB / 496.8 MB, free: 4.355 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001944/0.1439, allocations: 2.844 MB / 499.6 MB, free: 1.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.144, allocations: 0 / 499.6 MB, free: 1.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008305/0.1448, allocations: 0.5126 MB / 0.4884 GB, free: 0.6914 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.823e-05/0.1449, allocations: 100.8 kB / 0.4885 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.1449, allocations: 8 kB / 0.4885 GB, free: 0.5664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001888/0.1451, allocations: 20.05 kB / 0.4886 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.606e-05/0.1452, allocations: 23.91 kB / 0.4886 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.1452, allocations: 4 kB / 0.4886 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.394e-05/0.1453, allocations: 105.5 kB / 0.4887 GB, free: 428 kB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1453, allocations: 0 / 0.4887 GB, free: 428 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004556/0.1457, allocations: 71.78 kB / 0.4888 GB, free: 356 kB / 366.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.0002367/0.146, allocations: 123.2 kB / 0.4889 GB, free: 224 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006984/0.1467, allocations: 417.5 kB / 0.4893 GB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1467, allocations: 0 / 0.4893 GB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003617/0.1471, allocations: 325.3 kB / 0.4896 GB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003811/0.1475, allocations: 16 kB / 0.4896 GB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007757/0.1482, allocations: 486.1 kB / 0.4901 GB, free: 14.92 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.1486, allocations: 0.7398 MB / 0.4908 GB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.083e-05/0.1487, allocations: 17.38 kB / 0.4908 GB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.668e-05/0.1487, allocations: 15.44 kB / 0.4908 GB, free: 14.12 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1487, allocations: 0 / 0.4908 GB, free: 14.12 MB / 382.1 MB Notification: Performance of Templates: time 0.006092/0.1548, allocations: 2.351 MB / 0.4931 GB, free: 11.77 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & ./ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/QuasiStatic/FluxTubes/VariableComponents/VariableComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches