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.001777/0.001777, allocations: 120.4 kB / 20.44 MB, free: 1.461 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.002088/0.002088, allocations: 212.1 kB / 23.74 MB, free: 4.695 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.448/1.448, allocations: 230.5 MB / 257.4 MB, free: 8.191 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.001865/0.001865, allocations: 60.14 kB / 377.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2819, allocations: 53.41 MB / 431.2 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004846/0.2868, allocations: 3.54 MB / 434.7 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001557/0.2883, allocations: 0.8617 MB / 435.6 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001818/0.2885, allocations: 7.938 kB / 435.6 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001901/0.2887, allocations: 71.3 kB / 435.7 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000239/0.289, allocations: 134.8 kB / 435.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003602/0.2893, allocations: 131.8 kB / 435.9 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005671/0.2899, allocations: 0.5133 MB / 436.4 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002123/0.2901, allocations: 91.7 kB / 436.5 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002987/0.2904, allocations: 207.3 kB / 436.7 MB, free: 1.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002735/0.2907, allocations: 215 kB / 437 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.673e-05/0.2907, allocations: 36 kB / 437 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.788e-05/0.2908, allocations: 44 kB / 437 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.567e-05/0.2909, allocations: 87.69 kB / 437.1 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002029/0.2911, allocations: 226.8 kB / 437.3 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005616/0.2917, allocations: 0.5015 MB / 437.8 MB, free: 160 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2917, allocations: 4 kB / 437.8 MB, free: 156 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2917, allocations: 0 / 437.8 MB, free: 156 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.2917, allocations: 0 / 437.8 MB, free: 156 kB / 334.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.001202/0.2929, allocations: 0.6567 MB / 438.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.2929, allocations: 12.03 kB / 438.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.43e-05/0.293, allocations: 66.72 kB / 438.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003208/0.2933, allocations: 84.58 kB / 438.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004531/0.2938, allocations: 270.3 kB / 438.9 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.2938, allocations: 21.03 kB / 438.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.694e-05/0.2938, allocations: 32.38 kB / 439 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005974/0.2944, allocations: 362.8 kB / 439.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.2945, allocations: 0 / 439.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.821e-05/0.2945, allocations: 16 kB / 439.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/0.2945, allocations: 8 kB / 439.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005321/0.295, allocations: 270.4 kB / 439.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001948/0.297, allocations: 1.365 MB / 441 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004233/0.2974, allocations: 212.6 kB / 441.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001983/0.2976, allocations: 93.22 kB / 441.3 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.2976, allocations: 7.938 kB / 441.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.604e-05/0.2977, allocations: 38.42 kB / 441.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.243e-06/0.2977, allocations: 0 / 441.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001376/0.299, allocations: 487.5 kB / 441.8 MB, free: 11.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.2991, allocations: 55.41 kB / 441.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003252/0.2994, allocations: 316.5 kB / 442.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.779e-05/0.2994, allocations: 29.7 kB / 442.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001532/0.2996, allocations: 220.4 kB / 442.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.595e-05/0.2997, allocations: 79.33 kB / 442.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.222e-05/0.2997, allocations: 49.66 kB / 442.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.2999, allocations: 342.8 kB / 442.9 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001876/0.3001, allocations: 75.95 kB / 442.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.3003, allocations: 133 kB / 443.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003782/0.3007, allocations: 192.1 kB / 443.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.3007, allocations: 0 / 443.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007003/0.3014, allocations: 359.6 kB / 443.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.3014, allocations: 4 kB / 443.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.3014, allocations: 4 kB / 443.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003971/0.3018, allocations: 118.6 kB / 443.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.302, allocations: 35.84 kB / 443.8 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004121/0.3061, allocations: 4.664 MB / 448.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002113/0.3063, allocations: 31.95 kB / 448.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.59e-05/0.3063, allocations: 4 kB / 448.5 MB, free: 4.871 MB / 350.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.0001911/0.3065, allocations: 157.8 kB / 448.6 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.645e-05/0.3066, allocations: 31.81 kB / 448.7 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.171e-05/0.3066, allocations: 35.27 kB / 448.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.3066, allocations: 4 kB / 448.7 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.3066, allocations: 0 / 448.7 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.3066, allocations: 3.984 kB / 448.7 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004472/0.3071, allocations: 352.3 kB / 449 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3071, allocations: 3.984 kB / 449 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.3072, allocations: 23.92 kB / 449.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003093/0.3075, allocations: 118.5 kB / 449.2 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.3075, allocations: 0 / 449.2 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003941/0.3115, allocations: 4.661 MB / 453.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3115, allocations: 0 / 453.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006445/0.3121, allocations: 402.5 kB / 454.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.3122, allocations: 51.72 kB / 454.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.844e-05/0.3123, allocations: 11.94 kB / 454.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.3125, allocations: 15.98 kB / 454.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.653e-05/0.3126, allocations: 35.88 kB / 454.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.3126, allocations: 8.281 kB / 454.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002352/0.3128, allocations: 223.1 kB / 454.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3128, allocations: 0 / 454.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000664/0.3135, allocations: 119.7 kB / 454.7 MB, free: 14.22 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.0009207/0.3144, allocations: 0.9407 MB / 455.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009048/0.3153, allocations: 0.5544 MB / 456.2 MB, free: 12.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.3153, allocations: 4 kB / 456.2 MB, free: 12.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005567/0.3159, allocations: 471.8 kB / 456.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004063/0.3163, allocations: 61.59 kB / 456.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004552/0.3209, allocations: 3.162 MB / 459.9 MB, free: 8.816 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004627/0.3213, allocations: 0.7992 MB / 460.7 MB, free: 7.992 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.3214, allocations: 22.97 kB / 460.7 MB, free: 7.973 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.3216, allocations: 111.4 kB / 460.8 MB, free: 7.863 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3216, allocations: 0 / 460.8 MB, free: 7.863 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04654/0.3681, allocations: 8.997 MB / 469.8 MB, free: 15.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/12.83, allocations: 4.062 kB / 469.8 MB, free: 15.02 MB / 382.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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.369175937958062]