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.001665/0.001665, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001273/0.001273, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.376/1.376, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.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.001632/0.001632, allocations: 51.92 kB / 365.7 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09594/0.09757, allocations: 52.13 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005165/0.1027, allocations: 3.505 MB / 421.3 MB, free: 9.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001741/0.1045, allocations: 0.7517 MB / 422 MB, free: 8.332 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000331/0.1048, allocations: 8 kB / 422 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002504/0.1051, allocations: 67.3 kB / 422.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003656/0.1054, allocations: 138.8 kB / 422.3 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003434/0.1058, allocations: 107.9 kB / 422.4 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006391/0.1064, allocations: 0.4977 MB / 422.9 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00021/0.1066, allocations: 99.3 kB / 423 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002938/0.1069, allocations: 195.3 kB / 423.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003013/0.1072, allocations: 211 kB / 423.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.136e-05/0.1073, allocations: 40 kB / 423.4 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.791e-05/0.1074, allocations: 40 kB / 423.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.55e-05/0.1075, allocations: 83.69 kB / 423.5 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000221/0.1077, allocations: 222.9 kB / 423.7 MB, free: 6.637 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005471/0.1082, allocations: 497.9 kB / 424.2 MB, free: 6.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1082, allocations: 4 kB / 424.2 MB, free: 6.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1082, allocations: 0 / 424.2 MB, free: 6.145 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.682e-05/0.1082, allocations: 4 kB / 424.2 MB, free: 6.141 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.00127/0.1095, allocations: 0.7243 MB / 424.9 MB, free: 5.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.1096, allocations: 12.03 kB / 425 MB, free: 5.355 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.255e-05/0.1096, allocations: 66.73 kB / 425 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.462e-05/0.1097, allocations: 60.59 kB / 425.1 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004806/0.1102, allocations: 315.5 kB / 425.4 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.401e-05/0.1102, allocations: 25.03 kB / 425.4 MB, free: 4.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.999e-05/0.1103, allocations: 28.38 kB / 425.4 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006092/0.1109, allocations: 366.8 kB / 425.8 MB, free: 4.449 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.1109, allocations: 0 / 425.8 MB, free: 4.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.455e-05/0.1109, allocations: 16 kB / 425.8 MB, free: 4.434 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.111, allocations: 8 kB / 425.8 MB, free: 4.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005236/0.1115, allocations: 270.4 kB / 426.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.1134, allocations: 1.399 MB / 427.5 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003964/0.1138, allocations: 206.4 kB / 427.7 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001987/0.114, allocations: 96.81 kB / 427.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.114, allocations: 4 kB / 427.8 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.1141, allocations: 30.56 kB / 427.8 MB, free: 2.312 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.372e-06/0.1141, allocations: 3.938 kB / 427.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001491/0.1155, allocations: 0.7033 MB / 428.5 MB, free: 1.535 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.1156, allocations: 55.41 kB / 428.6 MB, free: 1.469 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003228/0.1159, allocations: 304.5 kB / 428.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.92e-05/0.1159, allocations: 29.7 kB / 428.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.1161, allocations: 216.5 kB / 429.1 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.887e-05/0.1161, allocations: 87.31 kB / 429.2 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.168e-05/0.1162, allocations: 45.7 kB / 429.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1164, allocations: 338.8 kB / 429.6 MB, free: 440 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001958/0.1166, allocations: 79.97 kB / 429.7 MB, free: 360 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/0.1168, allocations: 132.2 kB / 429.8 MB, free: 212 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003693/0.1171, allocations: 192.1 kB / 430 MB, free: 4 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1171, allocations: 3.938 kB / 430 MB, free: 0 / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007289/0.1179, allocations: 355.7 kB / 430.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.1179, allocations: 4 kB / 430.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.1179, allocations: 0 / 430.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003956/0.1183, allocations: 118.6 kB / 430.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/0.1185, allocations: 39.84 kB / 430.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004177/0.1226, allocations: 4.99 MB / 435.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002076/0.1229, allocations: 19.92 kB / 435.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.1229, allocations: 8 kB / 435.5 MB, free: 10.03 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.0001768/0.123, allocations: 149.8 kB / 435.6 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.267e-05/0.1231, allocations: 39.83 kB / 435.7 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.439e-05/0.1232, allocations: 39.17 kB / 435.7 MB, free: 9.793 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1232, allocations: 4 kB / 435.7 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.1232, allocations: 0 / 435.7 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.1232, allocations: 0 / 435.7 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004194/0.1236, allocations: 381.2 kB / 436.1 MB, free: 9.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1236, allocations: 0 / 436.1 MB, free: 9.367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.1237, allocations: 23.92 kB / 436.1 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003087/0.124, allocations: 114.5 kB / 436.2 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.124, allocations: 7.938 kB / 436.2 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003943/0.128, allocations: 4.963 MB / 441.2 MB, free: 3.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.128, allocations: 0 / 441.2 MB, free: 3.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006319/0.1286, allocations: 405 kB / 441.6 MB, free: 3.422 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.1288, allocations: 136.7 kB / 441.7 MB, free: 3.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.361e-05/0.1288, allocations: 4.281 kB / 441.7 MB, free: 3.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.129, allocations: 19.98 kB / 441.8 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.804e-05/0.1291, allocations: 27.91 kB / 441.8 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.1291, allocations: 11.92 kB / 441.8 MB, free: 3.207 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000225/0.1293, allocations: 223.1 kB / 442 MB, free: 2.988 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1293, allocations: 0 / 442 MB, free: 2.988 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006413/0.13, allocations: 111.8 kB / 442.1 MB, free: 2.879 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.0009272/0.1309, allocations: 0.9371 MB / 443.1 MB, free: 1.906 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009032/0.1318, allocations: 0.5544 MB / 443.6 MB, free: 1.312 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.1318, allocations: 8.125 kB / 443.6 MB, free: 1.305 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005375/0.1324, allocations: 478.8 kB / 444.1 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004012/0.1328, allocations: 67.52 kB / 444.2 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1822/0.3149, allocations: 3.106 MB / 447.3 MB, free: 28.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002049/0.3151, allocations: 0.7947 MB / 448.1 MB, free: 27.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001171/0.3153, allocations: 22.56 kB / 448.1 MB, free: 27.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.3154, allocations: 112.4 kB / 448.2 MB, free: 27.81 MB / 366.1 MB Notification: Performance of SimCode: time 1.193e-06/0.3154, allocations: 0 / 448.2 MB, free: 27.81 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04508/0.3605, allocations: 8.692 MB / 456.9 MB, free: 27.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.48, allocations: 7.984 kB / 456.9 MB, free: 27.08 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --stepSize=0.000199521 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.209784997627139]