Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001743/0.001743, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002108/0.002108, allocations: 217.2 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.42/1.42, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 47.92 kB / 377.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.272, allocations: 53.36 MB / 431.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004776/0.2768, allocations: 3.54 MB / 434.7 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.2783, allocations: 0.8563 MB / 435.5 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000185/0.2785, allocations: 7.938 kB / 435.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000207/0.2787, allocations: 75.28 kB / 435.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002466/0.279, allocations: 134.8 kB / 435.8 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003571/0.2793, allocations: 127.8 kB / 435.9 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005567/0.2799, allocations: 0.5133 MB / 436.4 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002052/0.2801, allocations: 91.7 kB / 436.5 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003011/0.2804, allocations: 207.3 kB / 436.7 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002761/0.2807, allocations: 207 kB / 436.9 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.878e-05/0.2807, allocations: 40 kB / 436.9 MB, free: 1.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.942e-05/0.2808, allocations: 44 kB / 437 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.698e-05/0.2809, allocations: 95.61 kB / 437.1 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.2811, allocations: 222.9 kB / 437.3 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005292/0.2816, allocations: 0.495 MB / 437.8 MB, free: 184 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2816, allocations: 0 / 437.8 MB, free: 184 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2816, allocations: 0 / 437.8 MB, free: 184 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.2817, allocations: 3.938 kB / 437.8 MB, free: 180 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.001136/0.2828, allocations: 0.6645 MB / 438.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.2828, allocations: 8.031 kB / 438.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.242e-05/0.2829, allocations: 74.72 kB / 438.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003309/0.2832, allocations: 76.58 kB / 438.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004659/0.2837, allocations: 262.3 kB / 438.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/0.2837, allocations: 25.03 kB / 438.9 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.502e-05/0.2838, allocations: 32.38 kB / 438.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006325/0.2844, allocations: 358.8 kB / 439.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.2844, allocations: 0 / 439.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.345e-05/0.2845, allocations: 19.94 kB / 439.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.2845, allocations: 8 kB / 439.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005422/0.285, allocations: 270.4 kB / 439.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002/0.287, allocations: 1.372 MB / 440.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004168/0.2874, allocations: 208.1 kB / 441.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002052/0.2876, allocations: 97.22 kB / 441.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.636e-05/0.2877, allocations: 3.984 kB / 441.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.2877, allocations: 38.42 kB / 441.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.2877, allocations: 0 / 441.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001444/0.2891, allocations: 491.2 kB / 441.7 MB, free: 12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.2892, allocations: 59.41 kB / 441.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003429/0.2895, allocations: 308.6 kB / 442.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.2896, allocations: 33.7 kB / 442.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.2897, allocations: 212.5 kB / 442.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.627e-05/0.2898, allocations: 83.31 kB / 442.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.307e-05/0.2899, allocations: 53.66 kB / 442.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.29, allocations: 334.8 kB / 442.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001929/0.2902, allocations: 79.95 kB / 442.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002198/0.2904, allocations: 128.2 kB / 443 MB, free: 10.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003913/0.2908, allocations: 200.1 kB / 443.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2908, allocations: 4 kB / 443.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007194/0.2915, allocations: 351.7 kB / 443.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.2916, allocations: 4.281 kB / 443.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.2916, allocations: 0 / 443.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004147/0.292, allocations: 122.6 kB / 443.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.2922, allocations: 43.78 kB / 443.7 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004113/0.2963, allocations: 4.657 MB / 448.4 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000225/0.2965, allocations: 27.83 kB / 448.4 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.949e-05/0.2965, allocations: 8 kB / 448.4 MB, free: 4.891 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.0002004/0.2967, allocations: 153.8 kB / 448.6 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.388e-05/0.2968, allocations: 31.81 kB / 448.6 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.659e-05/0.2969, allocations: 39.27 kB / 448.6 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2969, allocations: 4 kB / 448.6 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.2969, allocations: 3.938 kB / 448.6 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.2969, allocations: 3.984 kB / 448.6 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004341/0.2973, allocations: 348.5 kB / 449 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.2973, allocations: 7.984 kB / 449 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.2974, allocations: 23.92 kB / 449 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003248/0.2977, allocations: 114.5 kB / 449.1 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.2978, allocations: 8 kB / 449.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004034/0.3018, allocations: 4.653 MB / 453.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3018, allocations: 0 / 453.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006646/0.3025, allocations: 401.7 kB / 454.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/0.3026, allocations: 51.72 kB / 454.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.512e-05/0.3026, allocations: 4.188 kB / 454.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.3029, allocations: 23.98 kB / 454.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.81e-05/0.3029, allocations: 35.81 kB / 454.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.303, allocations: 8 kB / 454.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002516/0.3032, allocations: 227.1 kB / 454.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3032, allocations: 0 / 454.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006915/0.3039, allocations: 111.8 kB / 454.6 MB, free: 14.25 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.0009843/0.3049, allocations: 0.9388 MB / 455.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009927/0.3059, allocations: 0.566 MB / 456.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3059, allocations: 0 / 456.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005507/0.3064, allocations: 471.9 kB / 456.6 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004348/0.3069, allocations: 71.2 kB / 456.7 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00456/0.3114, allocations: 3.144 MB / 459.8 MB, free: 8.844 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004575/0.3119, allocations: 0.7993 MB / 460.6 MB, free: 8.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001187/0.312, allocations: 22.95 kB / 460.6 MB, free: 8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001558/0.3122, allocations: 115.3 kB / 460.7 MB, free: 7.887 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3122, allocations: 4 kB / 460.7 MB, free: 7.883 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05417/0.3663, allocations: 9.002 MB / 469.7 MB, free: 15.06 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.75, allocations: 14.27 kB / 469.8 MB, free: 15.05 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199521 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv","/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_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable With_Ron_Goff.v in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv. Warning: Get data of variable With_Ron_Goff.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv failed! Error: Could not read variable With_Ron_Goff_Vknee.v in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv. Warning: Get data of variable With_Ron_Goff_Vknee.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.3576241510018]