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.001374/0.001374, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001399/0.001399, allocations: 190.8 kB / 23.71 MB, free: 4.406 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.409/1.409, allocations: 225.7 MB / 252.5 MB, free: 12.8 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.001686/0.001686, allocations: 47.92 kB / 370.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.2502, allocations: 52.18 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004875/0.2551, allocations: 3.186 MB / 425.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.2565, allocations: 0.7245 MB / 426.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.2567, allocations: 4 kB / 426.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002013/0.2569, allocations: 75.28 kB / 426.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002441/0.2572, allocations: 134.8 kB / 426.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003244/0.2575, allocations: 111.8 kB / 426.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005372/0.258, allocations: 0.4977 MB / 427.3 MB, free: 9.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002095/0.2582, allocations: 99.56 kB / 427.4 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002432/0.2585, allocations: 199.3 kB / 427.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002406/0.2587, allocations: 179.1 kB / 427.8 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.807e-05/0.2588, allocations: 40 kB / 427.8 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.814e-05/0.2589, allocations: 43.94 kB / 427.9 MB, free: 9.078 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.741e-05/0.2589, allocations: 91.62 kB / 427.9 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001781/0.2591, allocations: 183.1 kB / 428.1 MB, free: 8.809 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005294/0.2596, allocations: 0.4902 MB / 428.6 MB, free: 8.316 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2597, allocations: 0 / 428.6 MB, free: 8.316 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2597, allocations: 4 kB / 428.6 MB, free: 8.312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.2597, allocations: 0 / 428.6 MB, free: 8.312 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.00119/0.2609, allocations: 0.6529 MB / 429.3 MB, free: 7.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.2609, allocations: 12.03 kB / 429.3 MB, free: 7.617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.504e-05/0.261, allocations: 70.72 kB / 429.3 MB, free: 7.539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.876e-05/0.2611, allocations: 52.61 kB / 429.4 MB, free: 7.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004882/0.2616, allocations: 254.3 kB / 429.6 MB, free: 7.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/0.2616, allocations: 28.97 kB / 429.7 MB, free: 7.188 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.453e-05/0.2616, allocations: 32.38 kB / 429.7 MB, free: 7.156 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006874/0.2623, allocations: 436 kB / 430.1 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.2623, allocations: 0 / 430.1 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.311e-05/0.2624, allocations: 20 kB / 430.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.2624, allocations: 8 kB / 430.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005637/0.263, allocations: 266.4 kB / 430.4 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002021/0.265, allocations: 1.275 MB / 431.7 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004283/0.2654, allocations: 198.5 kB / 431.9 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002088/0.2656, allocations: 100.8 kB / 432 MB, free: 4.738 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.2656, allocations: 4 kB / 432 MB, free: 4.734 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.2657, allocations: 30.56 kB / 432 MB, free: 4.695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.252e-06/0.2657, allocations: 0 / 432 MB, free: 4.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001433/0.2671, allocations: 487.9 kB / 432.5 MB, free: 4.203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.12e-05/0.2672, allocations: 55.41 kB / 432.6 MB, free: 4.137 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003473/0.2675, allocations: 308.5 kB / 432.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/0.2675, allocations: 33.7 kB / 432.9 MB, free: 3.781 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001649/0.2677, allocations: 212.5 kB / 433.1 MB, free: 3.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.692e-05/0.2678, allocations: 79.28 kB / 433.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.2679, allocations: 45.7 kB / 433.2 MB, free: 3.441 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.2681, allocations: 342.8 kB / 433.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002012/0.2683, allocations: 79.97 kB / 433.6 MB, free: 3.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.2685, allocations: 124.2 kB / 433.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004023/0.2689, allocations: 204.1 kB / 434 MB, free: 2.668 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2689, allocations: 0 / 434 MB, free: 2.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007304/0.2696, allocations: 359.6 kB / 434.3 MB, free: 2.301 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.2696, allocations: 4 kB / 434.3 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/0.2696, allocations: 4 kB / 434.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004192/0.2701, allocations: 126.4 kB / 434.4 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.2702, allocations: 27.92 kB / 434.5 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004371/0.2746, allocations: 4.65 MB / 439.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002186/0.2748, allocations: 23.91 kB / 439.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.2748, allocations: 11.94 kB / 439.1 MB, free: 13.11 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.0001827/0.275, allocations: 157.6 kB / 439.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.271e-05/0.2751, allocations: 35.77 kB / 439.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.423e-05/0.2752, allocations: 39.27 kB / 439.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.2752, allocations: 4 kB / 439.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.2752, allocations: 0 / 439.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2752, allocations: 4.109 kB / 439.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004125/0.2756, allocations: 316.6 kB / 439.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2756, allocations: 0 / 439.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001312/0.2757, allocations: 23.97 kB / 439.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003241/0.276, allocations: 110.4 kB / 439.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.2761, allocations: 8 kB / 439.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004168/0.2802, allocations: 4.629 MB / 444.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2802, allocations: 256 / 444.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006845/0.2809, allocations: 403.4 kB / 444.9 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001462/0.2811, allocations: 55.72 kB / 444.9 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.84e-05/0.2811, allocations: 12 kB / 444.9 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.2813, allocations: 19.98 kB / 444.9 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.305e-05/0.2814, allocations: 27.89 kB / 445 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.2814, allocations: 4 kB / 445 MB, free: 6.855 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002428/0.2817, allocations: 219.1 kB / 445.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2817, allocations: 0 / 445.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000659/0.2823, allocations: 111.8 kB / 445.3 MB, free: 6.535 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.000986/0.2833, allocations: 0.94 MB / 446.2 MB, free: 5.562 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001002/0.2843, allocations: 0.5665 MB / 446.8 MB, free: 4.957 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.2843, allocations: 0 / 446.8 MB, free: 4.957 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005682/0.2849, allocations: 468.1 kB / 447.3 MB, free: 4.461 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004546/0.2854, allocations: 61.08 kB / 447.3 MB, free: 4.402 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004714/0.2901, allocations: 3.131 MB / 450.4 MB, free: 1.145 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002024/0.2903, allocations: 190.6 kB / 450.6 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001303/0.2904, allocations: 26.97 kB / 450.7 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001505/0.2906, allocations: 107.4 kB / 450.8 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of SimCode: time 1.222e-06/0.2906, allocations: 0 / 450.8 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04499/0.3355, allocations: 9.212 MB / 460 MB, free: 7.812 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.49/12.82, allocations: 2.75 kB / 460 MB, free: 7.812 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.333006661385298]