Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001359/0.001359, allocations: 107.1 kB / 20.44 MB, free: 1.195 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001482/0.001482, allocations: 213.6 kB / 23.73 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 230.5 MB / 257.4 MB, free: 7.766 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2429/0.2429, allocations: 46.95 MB / 360.8 MB, free: 4.047 MB / 286.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002342/0.002342, allocations: 75.88 kB / 0.4962 GB, free: 7.594 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3353, allocations: 66.09 MB / 0.5607 GB, free: 4.047 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.003979/0.3393, allocations: 2.351 MB / 0.563 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.3408, allocations: 0.7906 MB / 0.5638 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.3409, allocations: 4 kB / 0.5638 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002078/0.3411, allocations: 59.45 kB / 0.5638 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002849/0.3414, allocations: 109.1 kB / 0.5639 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002549/0.3417, allocations: 95.88 kB / 0.564 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003785/0.342, allocations: 358.7 kB / 0.5644 GB, free: 284 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/0.3422, allocations: 68.89 kB / 0.5644 GB, free: 212 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002942/0.3425, allocations: 147.5 kB / 0.5646 GB, free: 64 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002131/0.3427, allocations: 139.4 kB / 0.5647 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.919e-05/0.3428, allocations: 28 kB / 0.5647 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.436e-05/0.3429, allocations: 32 kB / 0.5648 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.798e-05/0.3429, allocations: 71.75 kB / 0.5648 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.3431, allocations: 127.3 kB / 0.5649 GB, free: 15.67 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000448/0.3435, allocations: 378.4 kB / 0.5653 GB, free: 15.3 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/0.3435, allocations: 4 kB / 0.5653 GB, free: 15.3 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.3435, allocations: 0 / 0.5653 GB, free: 15.3 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.3435, allocations: 0 / 0.5653 GB, free: 15.3 MB / 414.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.001131/0.3447, allocations: 0.5673 MB / 0.5659 GB, free: 14.7 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.3447, allocations: 15.97 kB / 0.5659 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.426e-05/0.3448, allocations: 58.73 kB / 0.5659 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001389/0.3449, allocations: 40.7 kB / 0.566 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003908/0.3453, allocations: 213 kB / 0.5662 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.3453, allocations: 16.88 kB / 0.5662 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.396e-05/0.3454, allocations: 24.38 kB / 0.5662 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005207/0.3459, allocations: 256.1 kB / 0.5665 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.3459, allocations: 0 / 0.5665 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.243e-05/0.3459, allocations: 12 kB / 0.5665 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.3459, allocations: 8 kB / 0.5665 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005862/0.3465, allocations: 225.9 kB / 0.5667 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.348, allocations: 0.7846 MB / 0.5675 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005697/0.3486, allocations: 286.5 kB / 0.5677 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002971/0.3488, allocations: 120.8 kB / 0.5678 GB, free: 12.56 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.374e-05/0.3489, allocations: 7.938 kB / 0.5679 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.3489, allocations: 38.55 kB / 0.5679 GB, free: 12.5 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.503e-06/0.3489, allocations: 0 / 0.5679 GB, free: 12.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.004505/0.3534, allocations: 0.9606 MB / 0.5688 GB, free: 11.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.3535, allocations: 55.41 kB / 0.5689 GB, free: 11.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.3537, allocations: 229.1 kB / 0.5691 GB, free: 11.22 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.3538, allocations: 33.7 kB / 0.5691 GB, free: 11.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.3539, allocations: 173.3 kB / 0.5693 GB, free: 11.01 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.781e-05/0.354, allocations: 107 kB / 0.5694 GB, free: 10.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.3541, allocations: 53.7 kB / 0.5694 GB, free: 10.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.3543, allocations: 334.8 kB / 0.5698 GB, free: 10.51 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002288/0.3545, allocations: 95.95 kB / 0.5699 GB, free: 10.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002652/0.3548, allocations: 126.8 kB / 0.57 GB, free: 10.28 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004961/0.3553, allocations: 223.3 kB / 0.5702 GB, free: 10.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3553, allocations: 0 / 0.5702 GB, free: 10.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001924/0.3572, allocations: 0.5528 MB / 0.5707 GB, free: 9.488 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.3572, allocations: 8 kB / 0.5707 GB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.3572, allocations: 0 / 0.5707 GB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001911/0.3591, allocations: 315.1 kB / 0.571 GB, free: 9.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000171/0.3593, allocations: 27.97 kB / 0.5711 GB, free: 9.133 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008138/0.3674, allocations: 6.383 MB / 0.5773 GB, free: 2.289 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002481/0.3677, allocations: 19.92 kB / 0.5773 GB, free: 2.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.469e-05/0.3677, allocations: 12.06 kB / 0.5773 GB, free: 2.258 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,5), (1,5), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002192/0.3679, allocations: 145.7 kB / 0.5775 GB, free: 2.105 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.76e-05/0.368, allocations: 31.88 kB / 0.5775 GB, free: 2.074 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001833/0.3698, allocations: 0.5501 MB / 0.578 GB, free: 1.508 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.3698, allocations: 4 kB / 0.578 GB, free: 1.504 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.3698, allocations: 3.938 kB / 0.578 GB, free: 1.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3698, allocations: 0 / 0.578 GB, free: 1.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004589/0.3703, allocations: 300.4 kB / 0.5783 GB, free: 1.164 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.3703, allocations: 192 / 0.5783 GB, free: 1.164 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.3704, allocations: 31.95 kB / 0.5784 GB, free: 1.133 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001492/0.3719, allocations: 311.1 kB / 0.5787 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.3719, allocations: 8 kB / 0.5787 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008194/0.3801, allocations: 6.43 MB / 0.5849 GB, free: 9.914 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3801, allocations: 4.062 kB / 0.585 GB, free: 9.91 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001847/0.382, allocations: 0.6089 MB / 0.5855 GB, free: 9.273 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.647e-05/0.382, allocations: 31.69 kB / 0.5856 GB, free: 9.242 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.458e-05/0.3821, allocations: 7.984 kB / 0.5856 GB, free: 9.234 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001897/0.3823, allocations: 12 kB / 0.5856 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/0.3824, allocations: 39.92 kB / 0.5856 GB, free: 9.184 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.3824, allocations: 8 kB / 0.5856 GB, free: 9.176 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001965/0.3826, allocations: 169.2 kB / 0.5858 GB, free: 9.012 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3826, allocations: 0 / 0.5858 GB, free: 9.012 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005647/0.3832, allocations: 119.9 kB / 0.5859 GB, free: 8.895 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (11): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,4), (2,4), (2,4), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002092/0.3853, allocations: 1.164 MB / 0.5871 GB, free: 7.691 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001215/0.3865, allocations: 0.7445 MB / 0.5878 GB, free: 6.895 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3865, allocations: 0 / 0.5878 GB, free: 6.895 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001308/0.3878, allocations: 0.7171 MB / 0.5885 GB, free: 6.125 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.3881, allocations: 27.44 kB / 0.5885 GB, free: 6.102 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006365/0.3945, allocations: 3.179 MB / 0.5916 GB, free: 2.793 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.3947, allocations: 167.7 kB / 0.5918 GB, free: 2.613 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.118e-05/0.3947, allocations: 17.94 kB / 0.5918 GB, free: 2.598 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.3949, allocations: 83.41 kB / 0.5919 GB, free: 2.516 MB / 430.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3949, allocations: 0 / 0.5919 GB, free: 2.516 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05049/0.4453, allocations: 11.81 MB / 0.6034 GB, free: 6.848 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.03/13.48, allocations: 7.094 kB / 0.6034 GB, free: 6.844 MB / 446.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.446530308108777]