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.001286/0.001286, allocations: 108.1 kB / 17.15 MB, free: 6.309 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.001425/0.001425, allocations: 198 kB / 18.07 MB, free: 5.41 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.364/1.364, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001114/0.001114, allocations: 47.92 kB / 280.1 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1089, allocations: 46.63 MB / 326.7 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.00504/0.114, allocations: 3.484 MB / 330.2 MB, free: 1.293 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.1154, allocations: 0.7802 MB / 331 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001839/0.1156, allocations: 11.94 kB / 331 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001946/0.1158, allocations: 43.61 kB / 331 MB, free: 460 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002297/0.1161, allocations: 123 kB / 331.1 MB, free: 336 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002996/0.1164, allocations: 87.92 kB / 331.2 MB, free: 248 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004875/0.1169, allocations: 493.7 kB / 331.7 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.1171, allocations: 107.9 kB / 331.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002235/0.1173, allocations: 175.3 kB / 332 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002276/0.1176, allocations: 199 kB / 332.2 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.093e-05/0.1176, allocations: 28 kB / 332.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.635e-05/0.1177, allocations: 28 kB / 332.2 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.409e-05/0.1178, allocations: 75.67 kB / 332.3 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001854/0.118, allocations: 206.9 kB / 332.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004163/0.1184, allocations: 466.3 kB / 333 MB, free: 14.49 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.1184, allocations: 0 / 333 MB, free: 14.49 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1184, allocations: 0 / 333 MB, free: 14.49 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.1184, allocations: 0 / 333 MB, free: 14.49 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.001248/0.1197, allocations: 0.7246 MB / 333.7 MB, free: 13.71 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.597e-05/0.1198, allocations: 8.031 kB / 333.7 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.205e-05/0.1198, allocations: 70.72 kB / 333.8 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.12, allocations: 48.38 kB / 333.8 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003534/0.1203, allocations: 307.3 kB / 334.1 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.1204, allocations: 25.03 kB / 334.1 MB, free: 13.22 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.446e-05/0.1204, allocations: 32.38 kB / 334.2 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006207/0.121, allocations: 358.8 kB / 334.5 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.1211, allocations: 0 / 334.5 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.332e-05/0.1211, allocations: 16 kB / 334.5 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.1211, allocations: 8 kB / 334.5 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005288/0.1216, allocations: 274.4 kB / 334.8 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001902/0.1236, allocations: 1.422 MB / 336.2 MB, free: 11 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003999/0.124, allocations: 218.4 kB / 336.4 MB, free: 10.78 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002066/0.1242, allocations: 112.8 kB / 336.6 MB, free: 10.67 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.1242, allocations: 4 kB / 336.6 MB, free: 10.66 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.1243, allocations: 38.97 kB / 336.6 MB, free: 10.62 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.393e-06/0.1243, allocations: 0 / 336.6 MB, free: 10.62 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001489/0.1258, allocations: 0.7056 MB / 337.3 MB, free: 9.84 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/0.1258, allocations: 51.41 kB / 337.3 MB, free: 9.777 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003092/0.1261, allocations: 300.6 kB / 337.6 MB, free: 9.477 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.001e-05/0.1262, allocations: 33.7 kB / 337.7 MB, free: 9.438 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.1263, allocations: 212.1 kB / 337.9 MB, free: 9.223 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.642e-05/0.1264, allocations: 82.83 kB / 338 MB, free: 9.141 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.258e-05/0.1265, allocations: 49.64 kB / 338 MB, free: 9.086 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1266, allocations: 346.8 kB / 338.4 MB, free: 8.738 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/0.1268, allocations: 79.95 kB / 338.4 MB, free: 8.66 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002129/0.127, allocations: 124.2 kB / 338.5 MB, free: 8.523 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004046/0.1274, allocations: 196.1 kB / 338.7 MB, free: 8.316 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.1274, allocations: 4 kB / 338.7 MB, free: 8.312 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007029/0.1281, allocations: 359.5 kB / 339.1 MB, free: 7.945 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.1282, allocations: 4 kB / 339.1 MB, free: 7.941 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.1282, allocations: 7.984 kB / 339.1 MB, free: 7.934 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004367/0.1286, allocations: 106.5 kB / 339.2 MB, free: 7.82 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001882/0.1288, allocations: 43.84 kB / 339.3 MB, free: 7.777 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003564/0.1324, allocations: 4.441 MB / 343.7 MB, free: 2.934 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/0.1327, allocations: 28.02 kB / 343.7 MB, free: 2.906 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.099e-05/0.1327, allocations: 12 kB / 343.7 MB, free: 2.895 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.000186/0.1329, allocations: 157.8 kB / 343.9 MB, free: 2.73 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.11e-05/0.133, allocations: 35.61 kB / 343.9 MB, free: 2.695 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.407e-05/0.133, allocations: 35.17 kB / 344 MB, free: 2.656 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.133, allocations: 4 kB / 344 MB, free: 2.652 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.133, allocations: 0 / 344 MB, free: 2.652 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.133, allocations: 0 / 344 MB, free: 2.652 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000393/0.1334, allocations: 377.2 kB / 344.3 MB, free: 2.234 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1334, allocations: 288 / 344.3 MB, free: 2.234 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.1336, allocations: 27.92 kB / 344.4 MB, free: 2.207 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003285/0.1339, allocations: 114.6 kB / 344.5 MB, free: 2.086 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.1339, allocations: 7.938 kB / 344.5 MB, free: 2.078 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003173/0.1371, allocations: 4.441 MB / 348.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1371, allocations: 4 kB / 348.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005698/0.1377, allocations: 402.4 kB / 349.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/0.1378, allocations: 124.7 kB / 349.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.803e-05/0.1379, allocations: 8 kB / 349.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002248/0.1381, allocations: 23.98 kB / 349.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.725e-05/0.1382, allocations: 23.91 kB / 349.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.1382, allocations: 7.984 kB / 349.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002143/0.1384, allocations: 219.1 kB / 349.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1385, allocations: 0 / 349.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000668/0.1391, allocations: 119.7 kB / 349.8 MB, free: 12.29 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.0008635/0.14, allocations: 0.9448 MB / 350.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008336/0.1408, allocations: 0.5661 MB / 351.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1409, allocations: 0 / 351.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004942/0.1414, allocations: 480 kB / 351.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004909/0.1419, allocations: 53.62 kB / 351.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004396/0.1463, allocations: 3.289 MB / 355.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004343/0.1467, allocations: 0.795 MB / 355.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.1469, allocations: 26.97 kB / 356 MB, free: 5.879 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.147, allocations: 111.3 kB / 356.1 MB, free: 5.77 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.147, allocations: 0 / 356.1 MB, free: 5.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02131/0.1683, allocations: 7.88 MB / 364 MB, free: 13.85 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002556/0.1686, allocations: 251.8 kB / 364.2 MB, free: 13.59 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.014/2.183, allocations: 0 / 364.2 MB, free: 13.59 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