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.001198/0.001198, allocations: 114.3 kB / 17.28 MB, free: 6.219 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.001207/0.001207, allocations: 185.3 kB / 18.2 MB, free: 5.301 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.359/1.359, allocations: 205.1 MB / 224.1 MB, free: 12.45 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.001445/0.001445, allocations: 51.92 kB / 280.3 MB, free: 3.398 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1217, allocations: 46.63 MB / 326.9 MB, free: 4.699 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004744/0.1265, allocations: 3.484 MB / 330.4 MB, free: 1.188 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.1281, allocations: 0.7879 MB / 331.1 MB, free: 400 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002038/0.1283, allocations: 11.94 kB / 331.2 MB, free: 388 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002097/0.1285, allocations: 43.61 kB / 331.2 MB, free: 344 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002445/0.1288, allocations: 115 kB / 331.3 MB, free: 228 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003063/0.1291, allocations: 91.91 kB / 331.4 MB, free: 136 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000496/0.1296, allocations: 0.4978 MB / 331.9 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002513/0.1299, allocations: 131.2 kB / 332 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002483/0.1301, allocations: 191.3 kB / 332.2 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000219/0.1304, allocations: 211 kB / 332.4 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.476e-05/0.1304, allocations: 44 kB / 332.5 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.048e-05/0.1305, allocations: 40 kB / 332.5 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.004e-05/0.1306, allocations: 87.69 kB / 332.6 MB, free: 14.94 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001914/0.1308, allocations: 218.9 kB / 332.8 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004543/0.1312, allocations: 490.2 kB / 333.3 MB, free: 14.24 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.1312, allocations: 0 / 333.3 MB, free: 14.24 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1313, allocations: 0 / 333.3 MB, free: 14.24 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.1313, allocations: 0 / 333.3 MB, free: 14.24 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.001119/0.1324, allocations: 0.7207 MB / 334 MB, free: 13.47 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.1324, allocations: 8.031 kB / 334 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.318e-05/0.1325, allocations: 74.66 kB / 334.1 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.951e-05/0.1326, allocations: 48.38 kB / 334.1 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003774/0.133, allocations: 307.3 kB / 334.4 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/0.133, allocations: 29.03 kB / 334.5 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.498e-05/0.1331, allocations: 28.38 kB / 334.5 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006122/0.1337, allocations: 362.8 kB / 334.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.1337, allocations: 0 / 334.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.228e-05/0.1338, allocations: 12 kB / 334.9 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.1338, allocations: 8 kB / 334.9 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005055/0.1343, allocations: 270.4 kB / 335.1 MB, free: 12.28 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0019/0.1362, allocations: 1.426 MB / 336.6 MB, free: 10.75 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00042/0.1367, allocations: 222.4 kB / 336.8 MB, free: 10.53 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001999/0.1369, allocations: 104.8 kB / 336.9 MB, free: 10.42 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.771e-05/0.1369, allocations: 8 kB / 336.9 MB, free: 10.41 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.544e-05/0.137, allocations: 42.97 kB / 336.9 MB, free: 10.36 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 3.176e-06/0.137, allocations: 3.984 kB / 336.9 MB, free: 10.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001519/0.1385, allocations: 0.6978 MB / 337.6 MB, free: 9.59 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.1386, allocations: 55.41 kB / 337.7 MB, free: 9.523 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003184/0.1389, allocations: 304.6 kB / 338 MB, free: 9.219 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.1389, allocations: 29.7 kB / 338 MB, free: 9.184 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.1391, allocations: 216.1 kB / 338.2 MB, free: 8.965 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.737e-05/0.1391, allocations: 74.86 kB / 338.3 MB, free: 8.891 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.837e-05/0.1392, allocations: 49.69 kB / 338.3 MB, free: 8.836 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1394, allocations: 342.8 kB / 338.7 MB, free: 8.492 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001895/0.1396, allocations: 79.95 kB / 338.8 MB, free: 8.414 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/0.1398, allocations: 128.2 kB / 338.9 MB, free: 8.273 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003562/0.1402, allocations: 196.1 kB / 339.1 MB, free: 8.066 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.1402, allocations: 0 / 339.1 MB, free: 8.066 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006912/0.1409, allocations: 363.5 kB / 339.4 MB, free: 7.695 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.1409, allocations: 4 kB / 339.4 MB, free: 7.691 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1409, allocations: 0 / 339.4 MB, free: 7.691 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004234/0.1413, allocations: 114.5 kB / 339.5 MB, free: 7.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001795/0.1415, allocations: 36.14 kB / 339.6 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00458/0.1461, allocations: 4.978 MB / 344.6 MB, free: 2.145 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002962/0.1465, allocations: 23.86 kB / 344.6 MB, free: 2.121 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.374e-05/0.1465, allocations: 11.94 kB / 344.6 MB, free: 2.109 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.0002765/0.1468, allocations: 153.8 kB / 344.7 MB, free: 1.949 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.514e-05/0.1469, allocations: 35.62 kB / 344.8 MB, free: 1.914 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.842e-05/0.147, allocations: 35.17 kB / 344.8 MB, free: 1.875 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.147, allocations: 4 kB / 344.8 MB, free: 1.871 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.147, allocations: 0 / 344.8 MB, free: 1.871 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.147, allocations: 3.984 kB / 344.8 MB, free: 1.867 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004685/0.1475, allocations: 377.2 kB / 345.2 MB, free: 1.449 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1475, allocations: 0 / 345.2 MB, free: 1.449 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/0.1476, allocations: 23.98 kB / 345.2 MB, free: 1.426 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003402/0.148, allocations: 110.5 kB / 345.3 MB, free: 1.309 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.148, allocations: 11.92 kB / 345.3 MB, free: 1.297 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004132/0.1521, allocations: 4.963 MB / 350.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1522, allocations: 0 / 350.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006745/0.1528, allocations: 410.1 kB / 350.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001374/0.153, allocations: 120.7 kB / 350.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.336e-05/0.153, allocations: 4 kB / 350.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.1533, allocations: 28.03 kB / 350.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.1534, allocations: 28 kB / 350.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.1534, allocations: 11.98 kB / 350.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002293/0.1536, allocations: 215.1 kB / 351.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1536, allocations: 0 / 351.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007185/0.1544, allocations: 119.7 kB / 351.2 MB, free: 10.96 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.001031/0.1554, allocations: 0.9331 MB / 352.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.1564, allocations: 0.5739 MB / 352.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.1564, allocations: 0 / 352.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005759/0.157, allocations: 487.9 kB / 353.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005073/0.1575, allocations: 61.5 kB / 353.2 MB, free: 8.801 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0046/0.1622, allocations: 3.304 MB / 356.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.1626, allocations: 0.7914 MB / 357.3 MB, free: 4.559 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001439/0.1628, allocations: 30.95 kB / 357.4 MB, free: 4.527 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.1629, allocations: 107.4 kB / 357.5 MB, free: 4.422 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.1629, allocations: 0 / 357.5 MB, free: 4.422 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02723/0.1902, allocations: 8.252 MB / 365.7 MB, free: 12.14 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002161/0.1904, allocations: 244.2 kB / 366 MB, free: 11.89 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.044/2.235, allocations: 0 / 366 MB, free: 11.89 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","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches