Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.001363/0.001363, allocations: 118.6 kB / 18.5 MB, free: 4.566 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.002057/0.002057, allocations: 214.6 kB / 21.46 MB, free: 1.605 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.494/1.494, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001809/0.001809, allocations: 67.89 kB / 373.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1142, allocations: 53.32 MB / 426.7 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.00523/0.1194, allocations: 3.522 MB / 430.2 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001851/0.1213, allocations: 0.8568 MB / 431.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002184/0.1215, allocations: 11.94 kB / 431.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000219/0.1217, allocations: 63.36 kB / 431.1 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002536/0.122, allocations: 130.7 kB / 431.3 MB, free: 380 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003989/0.1224, allocations: 143.8 kB / 431.4 MB, free: 236 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2351/0.3575, allocations: 0.5043 MB / 431.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003324/0.3578, allocations: 94.38 kB / 432 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005152/0.3583, allocations: 202.6 kB / 432.2 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002671/0.3586, allocations: 208.7 kB / 432.4 MB, free: 7.148 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.842e-05/0.3587, allocations: 39.22 kB / 432.4 MB, free: 7.148 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001286/0.3588, allocations: 45.84 kB / 432.5 MB, free: 7.148 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.529e-05/0.3589, allocations: 96.2 kB / 432.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002036/0.3591, allocations: 216.3 kB / 432.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005565/0.3596, allocations: 0.4969 MB / 433.3 MB, free: 6.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3596, allocations: 0 / 433.3 MB, free: 6.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3596, allocations: 0 / 433.3 MB, free: 6.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.3597, allocations: 0.5312 kB / 433.3 MB, free: 6.984 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00105/0.3607, allocations: 0.7411 MB / 434 MB, free: 6.469 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.3607, allocations: 7.281 kB / 434 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.96e-05/0.3608, allocations: 71.5 kB / 434.1 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003075/0.3611, allocations: 77.33 kB / 434.2 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004335/0.3615, allocations: 329.6 kB / 434.5 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.367e-05/0.3616, allocations: 26.48 kB / 434.5 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.137e-05/0.3616, allocations: 31.81 kB / 434.6 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005758/0.3622, allocations: 362.2 kB / 434.9 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.3622, allocations: 1.125 kB / 434.9 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.018e-05/0.3622, allocations: 13.62 kB / 434.9 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/0.3623, allocations: 7.875 kB / 434.9 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004923/0.3627, allocations: 274.6 kB / 435.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001711/0.3645, allocations: 1.405 MB / 436.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003926/0.3649, allocations: 208.6 kB / 436.8 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001919/0.365, allocations: 98.38 kB / 436.9 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.3651, allocations: 2.625 kB / 436.9 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.3651, allocations: 41.02 kB / 436.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.3651, allocations: 1.188 kB / 436.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001405/0.3665, allocations: 0.7018 MB / 437.6 MB, free: 4.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.702e-05/0.3665, allocations: 54.62 kB / 437.7 MB, free: 4.809 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003347/0.3669, allocations: 312.2 kB / 438 MB, free: 4.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.3669, allocations: 29.45 kB / 438 MB, free: 4.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.367, allocations: 210.4 kB / 438.2 MB, free: 4.539 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.538e-05/0.3671, allocations: 84.94 kB / 438.3 MB, free: 4.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.371e-05/0.3671, allocations: 51.78 kB / 438.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.3672, allocations: 348.8 kB / 438.7 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001925/0.3674, allocations: 77.06 kB / 438.8 MB, free: 4.145 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002237/0.3677, allocations: 128.9 kB / 438.9 MB, free: 4.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003642/0.368, allocations: 199 kB / 439.1 MB, free: 4.055 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.368, allocations: 2.625 kB / 439.1 MB, free: 4.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006382/0.3687, allocations: 356 kB / 439.5 MB, free: 3.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.3687, allocations: 6 kB / 439.5 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3687, allocations: 1.812 kB / 439.5 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003804/0.3691, allocations: 122.3 kB / 439.6 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.3692, allocations: 33.08 kB / 439.6 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003045/0.3723, allocations: 4.963 MB / 444.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002302/0.3725, allocations: 35.62 kB / 444.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.3725, allocations: 11.69 kB / 444.6 MB, free: 15.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * 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: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001978/0.3727, allocations: 148.6 kB / 444.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.706e-05/0.3728, allocations: 36.47 kB / 444.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.034e-05/0.3729, allocations: 39.84 kB / 444.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.3729, allocations: 2.688 kB / 444.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/0.3729, allocations: 0 / 444.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3729, allocations: 5.875 kB / 444.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005172/0.3734, allocations: 380.2 kB / 445.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.3734, allocations: 4.312 kB / 445.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.3735, allocations: 20.89 kB / 445.3 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003215/0.3738, allocations: 111.8 kB / 445.4 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/0.3739, allocations: 6.969 kB / 445.4 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00446/0.3783, allocations: 4.964 MB / 450.3 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3783, allocations: 5.219 kB / 450.3 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007767/0.3791, allocations: 402.4 kB / 450.7 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001626/0.3793, allocations: 133.5 kB / 450.9 MB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.729e-05/0.3793, allocations: 5.922 kB / 450.9 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002355/0.3795, allocations: 20.27 kB / 450.9 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.116e-05/0.3796, allocations: 30.28 kB / 450.9 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.3797, allocations: 9.797 kB / 450.9 MB, free: 9.527 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002764/0.3799, allocations: 224 kB / 451.1 MB, free: 9.402 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3799, allocations: 1.156 kB / 451.1 MB, free: 9.402 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007138/0.3806, allocations: 110.8 kB / 451.3 MB, free: 9.383 MB / 366.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: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009732/0.3816, allocations: 0.9333 MB / 452.2 MB, free: 8.605 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009933/0.3826, allocations: 0.5712 MB / 452.8 MB, free: 8.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3826, allocations: 0 / 452.8 MB, free: 8.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005727/0.3832, allocations: 481.9 kB / 453.2 MB, free: 7.785 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000445/0.3836, allocations: 59.86 kB / 453.3 MB, free: 7.762 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00467/0.3883, allocations: 3.148 MB / 456.4 MB, free: 5.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005542/0.3889, allocations: 0.7944 MB / 457.2 MB, free: 5.051 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001312/0.389, allocations: 26.86 kB / 457.3 MB, free: 5.047 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/0.3892, allocations: 114.8 kB / 457.4 MB, free: 4.957 MB / 366.1 MB Notification: Performance of SimCode: time 1.272e-06/0.3892, allocations: 0 / 457.4 MB, free: 4.957 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04583/0.435, allocations: 8.778 MB / 466.1 MB, free: 2.449 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.62, allocations: 5.312 kB / 466.2 MB, free: 2.449 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --stepSize=0.000199521 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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: 15.322682680096477]