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.00132/0.00132, allocations: 103.9 kB / 17.58 MB, free: 5.422 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.001585/0.001585, allocations: 192.2 kB / 18.51 MB, free: 4.508 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.537/1.537, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001226/0.001226, allocations: 56.14 kB / 280.8 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1032, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005018/0.1083, allocations: 3.443 MB / 330.8 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.1099, allocations: 0.784 MB / 331.6 MB, free: 120 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002139/0.1102, allocations: 8 kB / 331.6 MB, free: 112 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001998/0.1104, allocations: 71.23 kB / 331.7 MB, free: 40 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002558/0.1107, allocations: 134.9 kB / 331.8 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002974/0.111, allocations: 107.9 kB / 331.9 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004846/0.1115, allocations: 0.5016 MB / 332.4 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002638/0.1117, allocations: 127.3 kB / 332.5 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002374/0.112, allocations: 191.2 kB / 332.7 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002514/0.1122, allocations: 211.1 kB / 332.9 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.441e-05/0.1123, allocations: 40 kB / 333 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.353e-05/0.1124, allocations: 40 kB / 333 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.906e-05/0.1125, allocations: 87.69 kB / 333.1 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002123/0.1127, allocations: 222.9 kB / 333.3 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004676/0.1132, allocations: 486.3 kB / 333.8 MB, free: 13.91 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.904e-06/0.1132, allocations: 0 / 333.8 MB, free: 13.91 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1132, allocations: 0 / 333.8 MB, free: 13.91 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.1132, allocations: 0 / 333.8 MB, free: 13.91 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.001252/0.1145, allocations: 0.7285 MB / 334.5 MB, free: 13.13 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/0.1146, allocations: 8.031 kB / 334.5 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.356e-05/0.1147, allocations: 70.72 kB / 334.6 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.1148, allocations: 48.38 kB / 334.7 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004255/0.1152, allocations: 303.3 kB / 334.9 MB, free: 12.67 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.809e-05/0.1152, allocations: 25.03 kB / 335 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.523e-05/0.1153, allocations: 28.38 kB / 335 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006784/0.116, allocations: 366.8 kB / 335.4 MB, free: 12.24 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.116, allocations: 0 / 335.4 MB, free: 12.24 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.276e-05/0.1161, allocations: 12 kB / 335.4 MB, free: 12.23 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.1161, allocations: 8 kB / 335.4 MB, free: 12.22 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005503/0.1166, allocations: 278.4 kB / 335.6 MB, free: 11.95 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00203/0.1187, allocations: 1.426 MB / 337.1 MB, free: 10.42 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004408/0.1191, allocations: 218.5 kB / 337.3 MB, free: 10.2 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002188/0.1194, allocations: 108.8 kB / 337.4 MB, free: 10.09 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.1194, allocations: 0 / 337.4 MB, free: 10.09 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.765e-05/0.1194, allocations: 42.91 kB / 337.4 MB, free: 10.04 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.422e-06/0.1195, allocations: 0 / 337.4 MB, free: 10.04 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001598/0.1211, allocations: 0.6979 MB / 338.1 MB, free: 9.266 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.312e-05/0.1211, allocations: 55.41 kB / 338.2 MB, free: 9.199 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000488/0.1216, allocations: 304.6 kB / 338.5 MB, free: 8.898 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.556e-05/0.1217, allocations: 33.7 kB / 338.5 MB, free: 8.859 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/0.1218, allocations: 216.1 kB / 338.7 MB, free: 8.641 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.893e-05/0.1219, allocations: 78.78 kB / 338.8 MB, free: 8.562 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.918e-05/0.122, allocations: 45.7 kB / 338.9 MB, free: 8.512 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.1222, allocations: 338.8 kB / 339.2 MB, free: 8.172 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001934/0.1224, allocations: 87.95 kB / 339.3 MB, free: 8.086 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/0.1226, allocations: 116.2 kB / 339.4 MB, free: 7.957 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003863/0.123, allocations: 196.2 kB / 339.6 MB, free: 7.75 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.123, allocations: 4 kB / 339.6 MB, free: 7.746 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007154/0.1237, allocations: 359.4 kB / 339.9 MB, free: 7.379 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.1238, allocations: 8.062 kB / 339.9 MB, free: 7.371 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.1238, allocations: 4 kB / 339.9 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004711/0.1243, allocations: 118.4 kB / 340.1 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.1245, allocations: 31.92 kB / 340.1 MB, free: 7.211 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004397/0.1289, allocations: 4.978 MB / 345.1 MB, free: 1.82 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002544/0.1292, allocations: 23.83 kB / 345.1 MB, free: 1.797 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.1292, allocations: 4 kB / 345.1 MB, free: 1.793 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.000242/0.1294, allocations: 153.7 kB / 345.2 MB, free: 1.633 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.745e-05/0.1295, allocations: 31.69 kB / 345.3 MB, free: 1.602 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.032e-05/0.1296, allocations: 47.25 kB / 345.3 MB, free: 1.551 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1296, allocations: 4 kB / 345.3 MB, free: 1.547 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1296, allocations: 0 / 345.3 MB, free: 1.547 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.1296, allocations: 3.984 kB / 345.3 MB, free: 1.543 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005061/0.1301, allocations: 373.3 kB / 345.7 MB, free: 1.129 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1302, allocations: 0 / 345.7 MB, free: 1.129 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.1303, allocations: 23.97 kB / 345.7 MB, free: 1.105 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003347/0.1306, allocations: 122.6 kB / 345.8 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.721e-05/0.1307, allocations: 8 kB / 345.8 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004076/0.1347, allocations: 4.959 MB / 350.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.1348, allocations: 0 / 350.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006951/0.1355, allocations: 406.3 kB / 351.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.1357, allocations: 124.7 kB / 351.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.627e-05/0.1357, allocations: 3.984 kB / 351.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000231/0.1359, allocations: 23.98 kB / 351.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.1361, allocations: 31.91 kB / 351.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.615e-05/0.1361, allocations: 4.125 kB / 351.4 MB, free: 10.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002433/0.1363, allocations: 219.1 kB / 351.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1363, allocations: 0 / 351.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000728/0.1371, allocations: 112 kB / 351.7 MB, free: 10.65 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.001028/0.1381, allocations: 0.9527 MB / 352.7 MB, free: 9.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.1392, allocations: 0.5739 MB / 353.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.1392, allocations: 0 / 353.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005856/0.1398, allocations: 491.9 kB / 353.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004698/0.1403, allocations: 49.02 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.004685/0.145, allocations: 3.16 MB / 356.9 MB, free: 5.191 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004641/0.1455, allocations: 0.7953 MB / 357.7 MB, free: 4.367 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001389/0.1456, allocations: 27.02 kB / 357.7 MB, free: 4.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001487/0.1458, allocations: 103.4 kB / 357.8 MB, free: 4.238 MB / 302.1 MB Notification: Performance of SimCode: time 1.433e-06/0.1458, allocations: 0 / 357.8 MB, free: 4.238 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04056/0.1863, allocations: 8.468 MB / 366.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.72, allocations: 4.406 kB / 366.3 MB, free: 11.7 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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.0004 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.csv","/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