Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.BasicComponents.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.001348/0.001348, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001526/0.001526, allocations: 208.7 kB / 24.51 MB, free: 3.941 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.526/1.526, allocations: 230.5 MB / 258.2 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.249/0.249, allocations: 46.96 MB / 361.6 MB, free: 3.965 MB / 286.1 MB " [Timeout remaining time 179] 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.BasicComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_BasicComponents",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.BasicComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_BasicComponents",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002293/0.002293, allocations: 79.88 kB / 0.4969 GB, free: 7.602 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3431/0.3454, allocations: 66.08 MB / 0.5614 GB, free: 4.062 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.BasicComponents): time 0.005152/0.3506, allocations: 3.234 MB / 0.5646 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001724/0.3523, allocations: 0.7925 MB / 0.5654 GB, free: 16 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002217/0.3525, allocations: 11.94 kB / 0.5654 GB, free: 4 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002365/0.3528, allocations: 75.33 kB / 0.5654 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002897/0.353, allocations: 130.8 kB / 0.5656 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003963/0.3534, allocations: 123.9 kB / 0.5657 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000631/0.3541, allocations: 0.5256 MB / 0.5662 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003376/0.3544, allocations: 178.4 kB / 0.5664 GB, free: 14.97 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003087/0.3547, allocations: 215.3 kB / 0.5666 GB, free: 14.76 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003163/0.355, allocations: 235 kB / 0.5668 GB, free: 14.53 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.166e-05/0.3551, allocations: 52 kB / 0.5668 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.725e-05/0.3552, allocations: 48 kB / 0.5669 GB, free: 14.43 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.3553, allocations: 111.6 kB / 0.567 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002211/0.3555, allocations: 207.1 kB / 0.5672 GB, free: 14.12 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006754/0.3562, allocations: 0.5641 MB / 0.5677 GB, free: 13.55 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3562, allocations: 0 / 0.5677 GB, free: 13.55 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3562, allocations: 0 / 0.5677 GB, free: 13.55 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.3562, allocations: 4 kB / 0.5677 GB, free: 13.55 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001451/0.3577, allocations: 0.6962 MB / 0.5684 GB, free: 12.82 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.3577, allocations: 8.031 kB / 0.5684 GB, free: 12.81 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.819e-05/0.3578, allocations: 17.12 kB / 0.5685 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001055/0.3579, allocations: 86.7 kB / 0.5685 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.47e-05/0.358, allocations: 52.61 kB / 0.5686 GB, free: 12.65 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004876/0.3584, allocations: 259.7 kB / 0.5688 GB, free: 12.37 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.02e-05/0.3585, allocations: 41.36 kB / 0.5689 GB, free: 12.33 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.621e-05/0.3586, allocations: 48.38 kB / 0.5689 GB, free: 12.28 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009183/0.3595, allocations: 0.5063 MB / 0.5694 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.3595, allocations: 0 / 0.5694 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.506e-05/0.3596, allocations: 20 kB / 0.5694 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.3596, allocations: 15.94 kB / 0.5694 GB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007433/0.3603, allocations: 320.1 kB / 0.5698 GB, free: 11.4 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002753/0.3631, allocations: 1.518 MB / 0.5712 GB, free: 9.777 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006519/0.3637, allocations: 229 kB / 0.5715 GB, free: 9.535 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003536/0.3641, allocations: 133.6 kB / 0.5716 GB, free: 9.398 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.3641, allocations: 4 kB / 0.5716 GB, free: 9.395 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.3641, allocations: 34.81 kB / 0.5716 GB, free: 9.352 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.904e-06/0.3641, allocations: 4 kB / 0.5716 GB, free: 9.348 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.003323/0.3675, allocations: 1.134 MB / 0.5727 GB, free: 8.152 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.313e-05/0.3675, allocations: 81.11 kB / 0.5728 GB, free: 8.055 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000435/0.368, allocations: 261.9 kB / 0.5731 GB, free: 7.789 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.671e-05/0.368, allocations: 33.7 kB / 0.5731 GB, free: 7.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002001/0.3682, allocations: 264.1 kB / 0.5733 GB, free: 7.488 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.3683, allocations: 131 kB / 0.5735 GB, free: 7.359 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.3684, allocations: 74.09 kB / 0.5735 GB, free: 7.277 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.3686, allocations: 338.8 kB / 0.5739 GB, free: 6.938 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002914/0.3689, allocations: 112.8 kB / 0.574 GB, free: 6.828 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003782/0.3693, allocations: 216.3 kB / 0.5742 GB, free: 6.578 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007437/0.37, allocations: 337.9 kB / 0.5745 GB, free: 6.211 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.37, allocations: 0 / 0.5745 GB, free: 6.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009468/0.371, allocations: 417.8 kB / 0.5749 GB, free: 5.793 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.371, allocations: 8 kB / 0.5749 GB, free: 5.785 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.371, allocations: 4 kB / 0.5749 GB, free: 5.781 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001612/0.3712, allocations: 37.16 kB / 0.5749 GB, free: 5.742 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004945/0.3717, allocations: 115.9 kB / 0.5751 GB, free: 5.629 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001364/0.373, allocations: 1.338 MB / 0.5764 GB, free: 4.168 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002925/0.3733, allocations: 15.98 kB / 0.5764 GB, free: 4.152 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.137e-05/0.3734, allocations: 16 kB / 0.5764 GB, free: 4.137 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (51): * Single equations (assignments): 50 * 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.0002577/0.3736, allocations: 169.7 kB / 0.5765 GB, free: 3.961 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.3737, allocations: 35.8 kB / 0.5766 GB, free: 3.926 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.122e-05/0.3738, allocations: 38.12 kB / 0.5766 GB, free: 3.891 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.3738, allocations: 7.984 kB / 0.5766 GB, free: 3.883 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.3738, allocations: 3.938 kB / 0.5766 GB, free: 3.879 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3738, allocations: 0 / 0.5766 GB, free: 3.879 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.3751, allocations: 0.6581 MB / 0.5773 GB, free: 3.164 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.3751, allocations: 0 / 0.5773 GB, free: 3.164 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000447/0.3755, allocations: 87.88 kB / 0.5774 GB, free: 3.078 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000102/0.3756, allocations: 36.78 kB / 0.5774 GB, free: 3.039 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.447e-05/0.3757, allocations: 8 kB / 0.5774 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001163/0.3768, allocations: 1.323 MB / 0.5787 GB, free: 1.594 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3768, allocations: 0 / 0.5787 GB, free: 1.594 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.378, allocations: 0.6016 MB / 0.5793 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/0.3781, allocations: 51.83 kB / 0.5793 GB, free: 0.918 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.931e-05/0.3782, allocations: 8 kB / 0.5793 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002811/0.3785, allocations: 23.98 kB / 0.5794 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.504e-05/0.3785, allocations: 27.95 kB / 0.5794 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-05/0.3786, allocations: 11.98 kB / 0.5794 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002146/0.3788, allocations: 181.2 kB / 0.5796 GB, free: 0.668 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3788, allocations: 0 / 0.5796 GB, free: 0.668 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005469/0.3793, allocations: 92 kB / 0.5797 GB, free: 0.5781 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (converter.i,converter1.i,eddyCurrent.Phi) * 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 (32): * Single equations (assignments): 31 * 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.001509/0.3808, allocations: 1.152 MB / 0.5808 GB, free: 15.39 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001006/0.3818, allocations: 396.8 kB / 0.5812 GB, free: 15 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3818, allocations: 0 / 0.5812 GB, free: 15 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004569/0.3823, allocations: 242.5 kB / 0.5814 GB, free: 14.75 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005547/0.3828, allocations: 38.67 kB / 0.5814 GB, free: 14.71 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005536/0.3884, allocations: 3.504 MB / 0.5849 GB, free: 11.02 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.3886, allocations: 207.8 kB / 0.585 GB, free: 10.8 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001638/0.3888, allocations: 34.91 kB / 0.5851 GB, free: 10.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002068/0.389, allocations: 139.4 kB / 0.5852 GB, free: 10.63 MB / 430.1 MB Notification: Performance of SimCode: time 9.81e-07/0.389, allocations: 0 / 0.5852 GB, free: 10.63 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03329/0.4223, allocations: 6.983 MB / 0.592 GB, free: 3.801 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.85, allocations: 4.062 kB / 0.592 GB, free: 3.797 MB / 430.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.BasicComponents.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.BasicComponents_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_BasicComponents_fmu --startTime=0 --stopTime=14 --stepSize=0.00300043 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_BasicComponents.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.BasicComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/BasicComponents/BasicComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.BasicComponents.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.25868555693887]