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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000946/0.000946, allocations: 93.78 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 174.6 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003182/0.0003183, allocations: 8 kB / 301.5 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1094, allocations: 50.41 MB / 351.9 MB, free: 3.371 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004272/0.1137, allocations: 3.133 MB / 355.1 MB, free: 224 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001842/0.1156, allocations: 0.7404 MB / 355.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004519/0.1161, allocations: 8 kB / 355.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002761/0.1164, allocations: 51.53 kB / 355.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005485/0.1169, allocations: 115.1 kB / 356 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003978/0.1174, allocations: 95.84 kB / 356.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007425/0.1181, allocations: 485.7 kB / 356.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002959/0.1184, allocations: 119.9 kB / 356.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003721/0.1188, allocations: 163.3 kB / 356.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003454/0.1192, allocations: 195 kB / 357 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.389e-05/0.1192, allocations: 20 kB / 357 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.068e-05/0.1193, allocations: 20 kB / 357.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.849e-05/0.1194, allocations: 71.69 kB / 357.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002635/0.1197, allocations: 224.5 kB / 357.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004445/0.1201, allocations: 450.2 kB / 357.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.1202, allocations: 4 kB / 357.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.707e-06/0.1202, allocations: 0 / 357.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.533e-05/0.1202, allocations: 0 / 357.8 MB, free: 13.47 MB / 302.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.1214, allocations: 0.6624 MB / 358.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.1215, allocations: 12.03 kB / 358.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000114/0.1216, allocations: 66.72 kB / 358.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.1217, allocations: 48.38 kB / 358.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004368/0.1221, allocations: 311.2 kB / 358.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.364e-05/0.1222, allocations: 25.03 kB / 358.9 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.335e-05/0.1222, allocations: 32.38 kB / 358.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006812/0.1229, allocations: 366.9 kB / 359.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.1229, allocations: 7.922 kB / 359.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.572e-05/0.123, allocations: 16 kB / 359.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.123, allocations: 8 kB / 359.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005948/0.1236, allocations: 282.4 kB / 359.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.1257, allocations: 1.415 MB / 361 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004385/0.1262, allocations: 234.3 kB / 361.3 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002253/0.1264, allocations: 112.8 kB / 361.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.1265, allocations: 4 kB / 361.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.1265, allocations: 42.5 kB / 361.4 MB, free: 9.625 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.402e-06/0.1265, allocations: 0 / 361.4 MB, free: 9.625 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001601/0.1281, allocations: 0.7218 MB / 362.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.903e-05/0.1282, allocations: 55.34 kB / 362.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003544/0.1285, allocations: 308.5 kB / 362.5 MB, free: 8.457 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.146e-05/0.1286, allocations: 37.7 kB / 362.5 MB, free: 8.414 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/0.1287, allocations: 208.2 kB / 362.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.181e-05/0.1288, allocations: 78.83 kB / 362.8 MB, free: 8.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.603e-05/0.1288, allocations: 29.7 kB / 362.8 MB, free: 8.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.129, allocations: 334.8 kB / 363.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.1292, allocations: 91.95 kB / 363.2 MB, free: 7.664 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002143/0.1294, allocations: 124.2 kB / 363.4 MB, free: 7.527 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004117/0.1298, allocations: 212.1 kB / 363.6 MB, free: 7.305 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1298, allocations: 0 / 363.6 MB, free: 7.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007574/0.1306, allocations: 375.4 kB / 363.9 MB, free: 6.922 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1306, allocations: 4 kB / 363.9 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.1307, allocations: 4 kB / 363.9 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004333/0.1311, allocations: 122.6 kB / 364.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001794/0.1313, allocations: 35.86 kB / 364.1 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003824/0.1351, allocations: 4.454 MB / 368.6 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000229/0.1354, allocations: 31.77 kB / 368.6 MB, free: 1.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.929e-05/0.1354, allocations: 8 kB / 368.6 MB, free: 1.855 MB / 302.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.0001819/0.1356, allocations: 153.7 kB / 368.7 MB, free: 1.695 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.914e-05/0.1357, allocations: 35.78 kB / 368.8 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.086e-05/0.1357, allocations: 43.16 kB / 368.8 MB, free: 1.617 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.1357, allocations: 0 / 368.8 MB, free: 1.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.1358, allocations: 4 kB / 368.8 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1358, allocations: 3.984 kB / 368.8 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004325/0.1362, allocations: 369.3 kB / 369.2 MB, free: 1.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.1362, allocations: 0 / 369.2 MB, free: 1.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.1363, allocations: 23.98 kB / 369.2 MB, free: 1.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003518/0.1367, allocations: 122.4 kB / 369.3 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.1367, allocations: 8 kB / 369.3 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1928/0.3295, allocations: 4.437 MB / 373.8 MB, free: 20.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3296, allocations: 0 / 373.8 MB, free: 20.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006987/0.3303, allocations: 414.7 kB / 374.2 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.3304, allocations: 136 kB / 374.3 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.483e-05/0.3304, allocations: 4.703 kB / 374.3 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.3307, allocations: 24.38 kB / 374.3 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.3308, allocations: 34.14 kB / 374.4 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.3308, allocations: 5.922 kB / 374.4 MB, free: 19.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000248/0.3311, allocations: 223.5 kB / 374.6 MB, free: 19.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3311, allocations: 0 / 374.6 MB, free: 19.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000711/0.3318, allocations: 112 kB / 374.7 MB, free: 19.84 MB / 302.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.0008631/0.3327, allocations: 0.9507 MB / 375.7 MB, free: 19.15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008574/0.3336, allocations: 0.5808 MB / 376.2 MB, free: 18.81 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3336, allocations: 1.219 kB / 376.2 MB, free: 18.81 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004492/0.334, allocations: 492.8 kB / 376.7 MB, free: 18.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004627/0.3345, allocations: 56.42 kB / 376.8 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004248/0.3388, allocations: 3.331 MB / 380.1 MB, free: 16.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002765/0.339, allocations: 0.8007 MB / 380.9 MB, free: 16.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001334/0.3392, allocations: 19.42 kB / 380.9 MB, free: 16.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.3393, allocations: 109.5 kB / 381 MB, free: 16.03 MB / 302.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3393, allocations: 4 kB / 381 MB, free: 16.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02156/0.3609, allocations: 7.744 MB / 388.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000222/0.3612, allocations: 247.4 kB / 389 MB, free: 13.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.054/2.415, allocations: 4 kB / 389 MB, free: 13.98 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/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) Reference file matches