Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_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.001353/0.001353, allocations: 98.88 kB / 17.58 MB, free: 5.418 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.001392/0.001392, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.878/1.878, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 44.16 kB / 280.7 MB, free: 3.102 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1091, allocations: 46.64 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005338/0.1145, allocations: 3.439 MB / 330.8 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00175/0.1163, allocations: 0.7879 MB / 331.6 MB, free: 132 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004249/0.1168, allocations: 11.94 kB / 331.6 MB, free: 120 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002856/0.1171, allocations: 63.36 kB / 331.7 MB, free: 56 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004679/0.1176, allocations: 134.9 kB / 331.8 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003969/0.118, allocations: 107.9 kB / 331.9 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006964/0.1187, allocations: 0.4977 MB / 332.4 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002977/0.119, allocations: 135.3 kB / 332.5 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003711/0.1194, allocations: 191.2 kB / 332.7 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003272/0.1197, allocations: 211.1 kB / 332.9 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.253e-05/0.1198, allocations: 40 kB / 333 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.943e-05/0.1199, allocations: 40 kB / 333 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.914e-05/0.12, allocations: 95.61 kB / 333.1 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002374/0.1203, allocations: 218.9 kB / 333.3 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005322/0.1208, allocations: 486.3 kB / 333.8 MB, free: 13.92 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1208, allocations: 0 / 333.8 MB, free: 13.92 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1208, allocations: 0 / 333.8 MB, free: 13.92 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.1209, allocations: 0 / 333.8 MB, free: 13.92 MB / 286.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.001338/0.1222, allocations: 0.7285 MB / 334.5 MB, free: 13.14 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.1223, allocations: 8.031 kB / 334.5 MB, free: 13.13 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.17e-05/0.1224, allocations: 70.72 kB / 334.6 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.1225, allocations: 48.38 kB / 334.7 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004337/0.1229, allocations: 307.3 kB / 335 MB, free: 12.67 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.123, allocations: 21.03 kB / 335 MB, free: 12.65 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.123, allocations: 36.31 kB / 335 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006394/0.1237, allocations: 362.9 kB / 335.4 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.1237, allocations: 0 / 335.4 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.811e-05/0.1237, allocations: 12 kB / 335.4 MB, free: 12.23 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.1237, allocations: 8 kB / 335.4 MB, free: 12.23 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005705/0.1243, allocations: 274.4 kB / 335.6 MB, free: 11.95 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002231/0.1266, allocations: 1.426 MB / 337.1 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004344/0.127, allocations: 214.5 kB / 337.3 MB, free: 10.21 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002134/0.1272, allocations: 108.8 kB / 337.4 MB, free: 10.1 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.513e-05/0.1273, allocations: 4 kB / 337.4 MB, free: 10.09 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/0.1273, allocations: 38.97 kB / 337.4 MB, free: 10.05 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.252e-06/0.1273, allocations: 0 / 337.4 MB, free: 10.05 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001576/0.1289, allocations: 0.6979 MB / 338.1 MB, free: 9.277 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.129, allocations: 55.41 kB / 338.2 MB, free: 9.211 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003311/0.1293, allocations: 304.6 kB / 338.5 MB, free: 8.91 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.789e-05/0.1293, allocations: 29.7 kB / 338.5 MB, free: 8.875 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.1295, allocations: 216.1 kB / 338.7 MB, free: 8.656 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.685e-05/0.1296, allocations: 78.84 kB / 338.8 MB, free: 8.578 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.1297, allocations: 45.7 kB / 338.8 MB, free: 8.527 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.1299, allocations: 342.8 kB / 339.2 MB, free: 8.184 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/0.1301, allocations: 87.95 kB / 339.3 MB, free: 8.098 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002015/0.1303, allocations: 116.2 kB / 339.4 MB, free: 7.969 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003854/0.1307, allocations: 200.1 kB / 339.6 MB, free: 7.758 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.1307, allocations: 4 kB / 339.6 MB, free: 7.754 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007409/0.1315, allocations: 355.4 kB / 339.9 MB, free: 7.391 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.1315, allocations: 8.062 kB / 339.9 MB, free: 7.383 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.1315, allocations: 4 kB / 339.9 MB, free: 7.379 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004294/0.132, allocations: 118.4 kB / 340.1 MB, free: 7.254 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001923/0.1322, allocations: 35.91 kB / 340.1 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004322/0.1365, allocations: 4.982 MB / 345.1 MB, free: 1.824 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002241/0.1367, allocations: 23.83 kB / 345.1 MB, free: 1.801 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.006e-05/0.1368, allocations: 4 kB / 345.1 MB, free: 1.797 MB / 286.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.0002056/0.137, allocations: 153.7 kB / 345.2 MB, free: 1.637 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.84e-05/0.1371, allocations: 39.67 kB / 345.3 MB, free: 1.598 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.836e-05/0.1371, allocations: 39.17 kB / 345.3 MB, free: 1.555 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.1372, allocations: 4 kB / 345.3 MB, free: 1.551 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.1372, allocations: 0 / 345.3 MB, free: 1.551 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1372, allocations: 0 / 345.3 MB, free: 1.551 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004993/0.1377, allocations: 377.2 kB / 345.7 MB, free: 1.133 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.1377, allocations: 0 / 345.7 MB, free: 1.133 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.1378, allocations: 19.98 kB / 345.7 MB, free: 1.113 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000335/0.1382, allocations: 122.6 kB / 345.8 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.596e-05/0.1382, allocations: 8 kB / 345.8 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004315/0.1425, allocations: 4.955 MB / 350.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.1425, allocations: 0 / 350.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006016/0.1432, allocations: 406.3 kB / 351.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001539/0.1433, allocations: 124.7 kB / 351.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.568e-05/0.1434, allocations: 4 kB / 351.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.1436, allocations: 23.98 kB / 351.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.01e-05/0.1437, allocations: 27.91 kB / 351.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.1437, allocations: 11.98 kB / 351.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002341/0.144, allocations: 215.1 kB / 351.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.144, allocations: 0 / 351.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006902/0.1447, allocations: 111.7 kB / 351.7 MB, free: 10.66 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.0009782/0.1457, allocations: 0.941 MB / 352.6 MB, free: 9.684 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.1467, allocations: 0.5782 MB / 353.2 MB, free: 9.066 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.1467, allocations: 0 / 353.2 MB, free: 9.066 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005779/0.1473, allocations: 495.9 kB / 353.7 MB, free: 8.543 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005576/0.1479, allocations: 65.14 kB / 353.8 MB, free: 8.477 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004936/0.1528, allocations: 3.159 MB / 356.9 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004929/0.1534, allocations: 0.7953 MB / 357.7 MB, free: 4.371 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001345/0.1535, allocations: 22.98 kB / 357.7 MB, free: 4.348 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001503/0.1537, allocations: 107.4 kB / 357.8 MB, free: 4.242 MB / 302.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1537, allocations: 0 / 357.8 MB, free: 4.242 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03923/0.1929, allocations: 8.454 MB / 366.3 MB, free: 11.72 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.22, allocations: 12.39 kB / 366.3 MB, free: 11.71 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches