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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001947/0.001947, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002199/0.002199, allocations: 214.6 kB / 23.73 MB, free: 4.164 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.549/1.549, allocations: 230.5 MB / 257.4 MB, free: 7.801 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.2234/0.2234, allocations: 46.95 MB / 360.8 MB, free: 3.938 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.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003436/0.003436, allocations: 79.88 kB / 0.4961 GB, free: 7.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3311, allocations: 66.09 MB / 0.5607 GB, free: 4.047 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.003736/0.3348, allocations: 2.349 MB / 0.563 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.3365, allocations: 1.024 MB / 0.564 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.723e-05/0.3366, allocations: 4 kB / 0.564 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001212/0.3378, allocations: 470 kB / 0.5644 GB, free: 196 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002629/0.3381, allocations: 111.2 kB / 0.5645 GB, free: 84 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009278/0.339, allocations: 458.2 kB / 0.565 GB, free: 15.63 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003048/0.3393, allocations: 223 kB / 0.5652 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004347/0.3398, allocations: 224.4 kB / 0.5654 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001925/0.34, allocations: 107.6 kB / 0.5655 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.3401, allocations: 103.5 kB / 0.5656 GB, free: 14.99 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.635e-05/0.3402, allocations: 28 kB / 0.5656 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002918/0.3404, allocations: 147.9 kB / 0.5658 GB, free: 14.82 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 4.62e-05/0.3405, allocations: 51.78 kB / 0.5658 GB, free: 14.77 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.871e-05/0.3406, allocations: 87.59 kB / 0.5659 GB, free: 14.68 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005186/0.3411, allocations: 398.6 kB / 0.5663 GB, free: 14.29 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.914e-06/0.3411, allocations: 4 kB / 0.5663 GB, free: 14.29 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3411, allocations: 4 kB / 0.5663 GB, free: 14.28 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.3411, allocations: 0 / 0.5663 GB, free: 14.28 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.00128/0.3424, allocations: 0.556 MB / 0.5668 GB, free: 13.7 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.3424, allocations: 8.031 kB / 0.5668 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.671e-05/0.3425, allocations: 58.73 kB / 0.5669 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003108/0.3428, allocations: 48.77 kB / 0.5669 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001363/0.343, allocations: 134.2 kB / 0.5671 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.256e-05/0.343, allocations: 20.88 kB / 0.5671 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.941e-05/0.343, allocations: 24.38 kB / 0.5671 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005971/0.3436, allocations: 294.7 kB / 0.5674 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.3436, allocations: 0 / 0.5674 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.742e-05/0.3437, allocations: 12 kB / 0.5674 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.3437, allocations: 4 kB / 0.5674 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005694/0.3442, allocations: 225.5 kB / 0.5676 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.3458, allocations: 0.8871 MB / 0.5685 GB, free: 11.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004954/0.3463, allocations: 197.1 kB / 0.5687 GB, free: 11.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003522/0.3467, allocations: 125.6 kB / 0.5688 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001077/0.3468, allocations: 19.98 kB / 0.5688 GB, free: 11.53 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/0.3468, allocations: 34.56 kB / 0.5688 GB, free: 11.48 MB / 414.1 MB Notification: Performance of pre-optimization done (n=19): time 1.543e-06/0.3468, allocations: 4.109 kB / 0.5689 GB, free: 11.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001175/0.348, allocations: 361.5 kB / 0.5692 GB, free: 11.12 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.348, allocations: 85.05 kB / 0.5693 GB, free: 11.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.3482, allocations: 137.8 kB / 0.5694 GB, free: 10.87 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.3482, allocations: 29.7 kB / 0.5694 GB, free: 10.84 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.3483, allocations: 148.3 kB / 0.5696 GB, free: 10.69 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.79e-05/0.3484, allocations: 67.42 kB / 0.5696 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.772e-05/0.3484, allocations: 33.72 kB / 0.5697 GB, free: 10.58 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.3486, allocations: 326.8 kB / 0.57 GB, free: 10.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002167/0.3488, allocations: 71.97 kB / 0.5701 GB, free: 10.18 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002448/0.349, allocations: 118 kB / 0.5702 GB, free: 10.05 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004761/0.3495, allocations: 208.1 kB / 0.5704 GB, free: 9.824 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.3495, allocations: 0 / 0.5704 GB, free: 9.824 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006686/0.3502, allocations: 287 kB / 0.5706 GB, free: 9.531 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.3502, allocations: 8 kB / 0.5706 GB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.3502, allocations: 0 / 0.5706 GB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002001/0.3504, allocations: 49.69 kB / 0.5707 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001986/0.3506, allocations: 43.97 kB / 0.5707 GB, free: 9.426 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002354/0.353, allocations: 2.633 MB / 0.5733 GB, free: 6.559 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001714/0.3531, allocations: 27.91 kB / 0.5733 GB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.553e-05/0.3532, allocations: 19.91 kB / 0.5734 GB, free: 6.512 MB / 414.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.000173/0.3533, allocations: 141.2 kB / 0.5735 GB, free: 6.367 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.576e-05/0.3534, allocations: 7.953 kB / 0.5735 GB, free: 6.359 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007067/0.3541, allocations: 270.5 kB / 0.5738 GB, free: 6.082 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.3541, allocations: 4 kB / 0.5738 GB, free: 6.078 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.3541, allocations: 0 / 0.5738 GB, free: 6.078 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.3541, allocations: 0 / 0.5738 GB, free: 6.078 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001252/0.3554, allocations: 0.6013 MB / 0.5743 GB, free: 5.414 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.3554, allocations: 4 kB / 0.5743 GB, free: 5.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001809/0.3555, allocations: 39.91 kB / 0.5744 GB, free: 5.371 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001464/0.3557, allocations: 45.69 kB / 0.5744 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.3557, allocations: 8 kB / 0.5744 GB, free: 5.312 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002093/0.3578, allocations: 2.63 MB / 0.577 GB, free: 2.457 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.3578, allocations: 4.031 kB / 0.577 GB, free: 2.453 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009286/0.3587, allocations: 0.5127 MB / 0.5775 GB, free: 1.914 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.754e-05/0.3588, allocations: 20.05 kB / 0.5775 GB, free: 1.895 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.125e-05/0.3588, allocations: 4 kB / 0.5775 GB, free: 1.891 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001852/0.359, allocations: 23.86 kB / 0.5776 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.415e-05/0.359, allocations: 19.95 kB / 0.5776 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.359, allocations: 8 kB / 0.5776 GB, free: 1.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.548e-05/0.3591, allocations: 103.3 kB / 0.5777 GB, free: 1.738 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3591, allocations: 0 / 0.5777 GB, free: 1.738 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004337/0.3596, allocations: 75.84 kB / 0.5778 GB, free: 1.664 MB / 414.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.001352/0.3609, allocations: 1.082 MB / 0.5788 GB, free: 0.543 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007701/0.3617, allocations: 417 kB / 0.5792 GB, free: 112 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3617, allocations: 0 / 0.5792 GB, free: 112 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004538/0.3621, allocations: 325.7 kB / 0.5795 GB, free: 15.77 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004126/0.3626, allocations: 16 kB / 0.5795 GB, free: 15.75 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00329/0.3658, allocations: 2.358 MB / 0.5818 GB, free: 13.25 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001301/0.366, allocations: 125.2 kB / 0.582 GB, free: 13.11 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.306e-05/0.3661, allocations: 21.41 kB / 0.582 GB, free: 13.09 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.472e-05/0.3662, allocations: 59.42 kB / 0.582 GB, free: 13.04 MB / 430.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3662, allocations: 0 / 0.582 GB, free: 13.04 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0373/0.4034, allocations: 5.024 MB / 0.5869 GB, free: 8.125 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.95, allocations: 3.562 kB / 0.5869 GB, free: 8.125 MB / 430.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --stepSize=0.00019984 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.987998525146395]