Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 109.5 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001954/0.001954, allocations: 183.7 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 43.92 kB / 370.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2744, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004873/0.2792, allocations: 3.515 MB / 426.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.2806, allocations: 0.7565 MB / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000161/0.2808, allocations: 8 kB / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002033/0.281, allocations: 71.28 kB / 427 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002349/0.2812, allocations: 134.8 kB / 427.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002877/0.2815, allocations: 99.86 kB / 427.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005811/0.2821, allocations: 0.5094 MB / 427.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000211/0.2823, allocations: 95.7 kB / 427.8 MB, free: 9.375 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002688/0.2826, allocations: 207.2 kB / 428 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002832/0.2829, allocations: 203.1 kB / 428.2 MB, free: 8.973 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.7e-05/0.2829, allocations: 40 kB / 428.3 MB, free: 8.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.653e-05/0.283, allocations: 40 kB / 428.3 MB, free: 8.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.66e-05/0.2831, allocations: 91.62 kB / 428.4 MB, free: 8.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002109/0.2833, allocations: 218.9 kB / 428.6 MB, free: 8.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005245/0.2838, allocations: 497.3 kB / 429.1 MB, free: 8.105 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2838, allocations: 0 / 429.1 MB, free: 8.105 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2838, allocations: 4 kB / 429.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.229e-05/0.2838, allocations: 4 kB / 429.1 MB, free: 8.098 MB / 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.001129/0.285, allocations: 0.6568 MB / 429.8 MB, free: 7.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.285, allocations: 8.031 kB / 429.8 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.665e-05/0.2851, allocations: 70.72 kB / 429.8 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.993e-05/0.2852, allocations: 56.55 kB / 429.9 MB, free: 7.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004339/0.2856, allocations: 250.3 kB / 430.1 MB, free: 7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.981e-05/0.2856, allocations: 25.03 kB / 430.2 MB, free: 6.977 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.867e-05/0.2857, allocations: 32.31 kB / 430.2 MB, free: 6.945 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006392/0.2863, allocations: 362.9 kB / 430.5 MB, free: 6.574 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.2863, allocations: 0 / 430.5 MB, free: 6.574 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/0.2864, allocations: 12 kB / 430.6 MB, free: 6.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.2864, allocations: 8 kB / 430.6 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005506/0.2869, allocations: 270.4 kB / 430.8 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002041/0.289, allocations: 1.365 MB / 432.2 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004196/0.2894, allocations: 198.5 kB / 432.4 MB, free: 4.633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.2896, allocations: 100.8 kB / 432.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.181e-05/0.2896, allocations: 4 kB / 432.5 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.2896, allocations: 30.56 kB / 432.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 3.066e-06/0.2897, allocations: 7.922 kB / 432.5 MB, free: 4.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.00142/0.2911, allocations: 487.3 kB / 433 MB, free: 3.992 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.2911, allocations: 55.41 kB / 433.1 MB, free: 3.926 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003293/0.2914, allocations: 304.5 kB / 433.3 MB, free: 3.613 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.2915, allocations: 33.7 kB / 433.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.2916, allocations: 212.5 kB / 433.6 MB, free: 3.363 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.947e-05/0.2917, allocations: 83.33 kB / 433.7 MB, free: 3.281 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.4e-05/0.2918, allocations: 53.62 kB / 433.7 MB, free: 3.223 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.292, allocations: 334.8 kB / 434.1 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.2921, allocations: 79.95 kB / 434.1 MB, free: 2.809 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002271/0.2924, allocations: 132.2 kB / 434.3 MB, free: 2.664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003801/0.2928, allocations: 192.2 kB / 434.4 MB, free: 2.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.2928, allocations: 7.938 kB / 434.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006865/0.2934, allocations: 347.7 kB / 434.8 MB, free: 2.098 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.2935, allocations: 7.984 kB / 434.8 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.2935, allocations: 0 / 434.8 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004262/0.2939, allocations: 122.5 kB / 434.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001674/0.2941, allocations: 31.92 kB / 435 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004223/0.2983, allocations: 4.669 MB / 439.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002011/0.2985, allocations: 23.86 kB / 439.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.796e-05/0.2985, allocations: 16.17 kB / 439.7 MB, free: 12.88 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.0002001/0.2987, allocations: 157.8 kB / 439.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.97e-05/0.2988, allocations: 35.77 kB / 439.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.741e-05/0.2988, allocations: 39.27 kB / 439.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.2988, allocations: 0 / 439.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.2989, allocations: 4 kB / 439.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.2989, allocations: 0 / 439.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004532/0.2993, allocations: 344.4 kB / 440.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2993, allocations: 4 kB / 440.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001116/0.2994, allocations: 15.98 kB / 440.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003134/0.2997, allocations: 118.5 kB / 440.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.2998, allocations: 3.938 kB / 440.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004047/0.3038, allocations: 4.661 MB / 445 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3038, allocations: 0 / 445 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006238/0.3044, allocations: 401.6 kB / 445.4 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.3045, allocations: 55.7 kB / 445.5 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.888e-05/0.3046, allocations: 8.281 kB / 445.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002154/0.3048, allocations: 15.98 kB / 445.5 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.3049, allocations: 35.97 kB / 445.5 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.3049, allocations: 11.94 kB / 445.5 MB, free: 6.566 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00023/0.3051, allocations: 219.1 kB / 445.8 MB, free: 6.355 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3051, allocations: 0 / 445.8 MB, free: 6.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00066/0.3058, allocations: 115.8 kB / 445.9 MB, free: 6.242 MB / 350.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.001065/0.3069, allocations: 0.9399 MB / 446.8 MB, free: 5.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009481/0.3078, allocations: 0.5699 MB / 447.4 MB, free: 4.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3078, allocations: 0 / 447.4 MB, free: 4.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000559/0.3084, allocations: 467.9 kB / 447.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004104/0.3088, allocations: 57.08 kB / 447.9 MB, free: 4.109 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004597/0.3134, allocations: 3.129 MB / 451 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004982/0.3139, allocations: 0.7991 MB / 451.8 MB, free: 20 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001292/0.314, allocations: 27 kB / 451.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001473/0.3142, allocations: 107.4 kB / 452 MB, free: 15.89 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3142, allocations: 4 kB / 452 MB, free: 15.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04432/0.3585, allocations: 8.898 MB / 460.9 MB, free: 7.168 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.26, allocations: 6.469 kB / 460.9 MB, free: 7.164 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv. Warning: Get data of variable With_Ron_Goff.v from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv failed! Error: Could not read variable With_Ron_Goff_Vknee.v in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv. Warning: Get data of variable With_Ron_Goff_Vknee.v from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.896346698998968]