Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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) 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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008389/0.0008388, allocations: 95 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009762/0.0009761, allocations: 206.1 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.204/1.204, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001947/0.0001948, allocations: 4 kB / 307.8 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07848/0.07869, allocations: 51.53 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.002755/0.08148, allocations: 2.495 MB / 361.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.08321, allocations: 1.184 MB / 363.1 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.08337, allocations: 8 kB / 363.1 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003407/0.08372, allocations: 123.5 kB / 363.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003381/0.08407, allocations: 119.3 kB / 363.3 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001119/0.0852, allocations: 0.6226 MB / 363.9 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003719/0.08558, allocations: 282.6 kB / 364.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000926/0.08651, allocations: 0.5776 MB / 364.8 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001778/0.0867, allocations: 111.5 kB / 364.9 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001914/0.0869, allocations: 147.4 kB / 365 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.892e-05/0.08694, allocations: 19.94 kB / 365 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003107/0.08726, allocations: 167.8 kB / 365.2 MB, free: 7.312 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.914e-05/0.0873, allocations: 47.83 kB / 365.3 MB, free: 7.266 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.08743, allocations: 156.9 kB / 365.4 MB, free: 7.105 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004904/0.08793, allocations: 490.6 kB / 365.9 MB, free: 6.625 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.08794, allocations: 0 / 365.9 MB, free: 6.625 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.08795, allocations: 3.938 kB / 365.9 MB, free: 6.621 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.08796, allocations: 0 / 365.9 MB, free: 6.621 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001394/0.08936, allocations: 0.6671 MB / 366.6 MB, free: 5.902 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.08941, allocations: 8.031 kB / 366.6 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.713e-05/0.08949, allocations: 66.72 kB / 366.6 MB, free: 5.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000744/0.09024, allocations: 120.5 kB / 366.7 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000263/0.09052, allocations: 266.9 kB / 367 MB, free: 5.406 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.75e-05/0.09055, allocations: 25.03 kB / 367 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.883e-05/0.09061, allocations: 36.11 kB / 367.1 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004916/0.0911, allocations: 337 kB / 367.4 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.09113, allocations: 0 / 367.4 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.68e-05/0.09116, allocations: 12 kB / 367.4 MB, free: 5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.09117, allocations: 11.98 kB / 367.4 MB, free: 4.988 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000367/0.09154, allocations: 234.5 kB / 367.7 MB, free: 4.758 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/0.09329, allocations: 1.455 MB / 369.1 MB, free: 3.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005942/0.09389, allocations: 0.7004 MB / 369.8 MB, free: 2.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/0.09405, allocations: 108.8 kB / 369.9 MB, free: 2.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001556/0.09421, allocations: 178.1 kB / 370.1 MB, free: 2.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.793e-05/0.09424, allocations: 30.56 kB / 370.1 MB, free: 1.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.233e-06/0.09424, allocations: 0 / 370.1 MB, free: 1.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001109/0.09536, allocations: 0.4921 MB / 370.6 MB, free: 1.465 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.0954, allocations: 59.41 kB / 370.7 MB, free: 1.395 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.09555, allocations: 173.2 kB / 370.8 MB, free: 1.207 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.09558, allocations: 29.7 kB / 370.9 MB, free: 1.172 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.247e-05/0.09567, allocations: 172 kB / 371 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.294e-05/0.09574, allocations: 86.73 kB / 371.1 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.711e-05/0.09578, allocations: 29.66 kB / 371.1 MB, free: 0.875 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.722e-05/0.09589, allocations: 330.8 kB / 371.5 MB, free: 0.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.09601, allocations: 72.53 kB / 371.5 MB, free: 484 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001357/0.09615, allocations: 133 kB / 371.7 MB, free: 328 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002589/0.09641, allocations: 216.8 kB / 371.9 MB, free: 88 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.09642, allocations: 0 / 371.9 MB, free: 88 kB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.1333/0.2297, allocations: 322.2 kB / 372.2 MB, free: 19.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.2297, allocations: 6.656 kB / 372.2 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.2298, allocations: 1.938 kB / 372.2 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003193/0.2301, allocations: 79.78 kB / 372.3 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.2303, allocations: 42.97 kB / 372.3 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001506/0.2318, allocations: 1.83 MB / 374.2 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.2319, allocations: 29.34 kB / 374.2 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.2319, allocations: 10.12 kB / 374.2 MB, free: 17.78 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001173/0.2321, allocations: 154.1 kB / 374.3 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.942e-05/0.2321, allocations: 20.5 kB / 374.4 MB, free: 17.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005111/0.2326, allocations: 285.1 kB / 374.6 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.2326, allocations: 3.031 kB / 374.6 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2326, allocations: 2.406 kB / 374.6 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2326, allocations: 1.172 kB / 374.6 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008767/0.2335, allocations: 0.6902 MB / 375.3 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.2335, allocations: 0 / 375.3 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/0.2337, allocations: 25.03 kB / 375.4 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000216/0.2339, allocations: 75.58 kB / 375.4 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.2339, allocations: 8.797 kB / 375.4 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001342/0.2352, allocations: 1.835 MB / 377.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2353, allocations: 0 / 377.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005704/0.2358, allocations: 457.1 kB / 377.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.701e-05/0.2359, allocations: 111 kB / 377.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.2359, allocations: 7.719 kB / 377.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.236, allocations: 1.656 kB / 377.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.002e-05/0.2361, allocations: 20.16 kB / 377.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.2361, allocations: 9.141 kB / 377.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.734e-05/0.2362, allocations: 128.1 kB / 378 MB, free: 15.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2362, allocations: 0 / 378 MB, free: 15.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004382/0.2366, allocations: 100.1 kB / 378.1 MB, free: 15.39 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.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): 14 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007397/0.2374, allocations: 1.005 MB / 379.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004724/0.2379, allocations: 348.4 kB / 379.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2379, allocations: 0 / 379.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002562/0.2381, allocations: 247.2 kB / 379.7 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.2384, allocations: 21.8 kB / 379.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002447/0.2409, allocations: 2.673 MB / 382.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001539/0.2411, allocations: 0.7549 MB / 383.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.744e-05/0.2412, allocations: 25.69 kB / 383.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.463e-05/0.2413, allocations: 70.7 kB / 383.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.2413, allocations: 2.297 kB / 383.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0149/0.2562, allocations: 4.699 MB / 387.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001487/0.2563, allocations: 259.8 kB / 388.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.699/1.956, allocations: 0 / 388.2 MB, free: 10.79 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches