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.001723/0.001722, allocations: 114 kB / 17.74 MB, free: 5.355 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.001697/0.001698, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.506/1.506, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001741/0.001741, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1034, allocations: 46.61 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.006182/0.1097, allocations: 3.442 MB / 378.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001903/0.1116, allocations: 0.8029 MB / 378.9 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000232/0.1118, allocations: 4 kB / 378.9 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002277/0.1121, allocations: 71.3 kB / 379 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002681/0.1124, allocations: 134.8 kB / 379.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000336/0.1127, allocations: 103.9 kB / 379.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2131/0.3258, allocations: 0.4985 MB / 379.7 MB, free: 9.277 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003541/0.3262, allocations: 138.8 kB / 379.8 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000386/0.3266, allocations: 183.1 kB / 380 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002339/0.3268, allocations: 211.9 kB / 380.2 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.914e-05/0.3269, allocations: 39.88 kB / 380.3 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.19e-05/0.327, allocations: 42.34 kB / 380.3 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.099e-05/0.3271, allocations: 88.5 kB / 380.4 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001907/0.3273, allocations: 227.5 kB / 380.6 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005359/0.3278, allocations: 493.2 kB / 381.1 MB, free: 9.051 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.3278, allocations: 0 / 381.1 MB, free: 9.051 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3278, allocations: 0 / 381.1 MB, free: 9.051 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.3278, allocations: 1.375 kB / 381.1 MB, free: 9.051 MB / 318.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.0009879/0.3288, allocations: 0.732 MB / 381.8 MB, free: 8.539 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.3289, allocations: 9.625 kB / 381.8 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.064e-05/0.329, allocations: 69.39 kB / 381.9 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.131e-05/0.329, allocations: 50.38 kB / 382 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004129/0.3295, allocations: 316.8 kB / 382.3 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.094e-05/0.3295, allocations: 25.09 kB / 382.3 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.528e-05/0.3295, allocations: 28.62 kB / 382.3 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006545/0.3302, allocations: 365.3 kB / 382.7 MB, free: 8.156 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.3302, allocations: 5.656 kB / 382.7 MB, free: 8.156 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.283e-05/0.3303, allocations: 14.81 kB / 382.7 MB, free: 8.156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.3303, allocations: 7.719 kB / 382.7 MB, free: 8.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005881/0.3309, allocations: 272.2 kB / 383 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001747/0.3326, allocations: 1.413 MB / 384.4 MB, free: 7.363 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004075/0.3331, allocations: 220 kB / 384.6 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001958/0.3333, allocations: 105.5 kB / 384.7 MB, free: 7.332 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.3333, allocations: 6.453 kB / 384.7 MB, free: 7.332 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.3333, allocations: 41.03 kB / 384.7 MB, free: 7.289 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.313e-06/0.3333, allocations: 0 / 384.7 MB, free: 7.289 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001397/0.3347, allocations: 0.6998 MB / 385.4 MB, free: 6.918 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.3348, allocations: 55.31 kB / 385.5 MB, free: 6.855 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003051/0.3351, allocations: 307.1 kB / 385.8 MB, free: 6.75 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.3351, allocations: 32.14 kB / 385.8 MB, free: 6.715 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.3353, allocations: 215.7 kB / 386 MB, free: 6.535 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.06e-05/0.3353, allocations: 76.12 kB / 386.1 MB, free: 6.477 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.247e-05/0.3354, allocations: 52.84 kB / 386.2 MB, free: 6.441 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.374e-05/0.3355, allocations: 337.4 kB / 386.5 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001847/0.3357, allocations: 81.83 kB / 386.6 MB, free: 6.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002351/0.3359, allocations: 119.8 kB / 386.7 MB, free: 6.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003729/0.3363, allocations: 201.5 kB / 386.9 MB, free: 5.914 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3363, allocations: 1.406 kB / 386.9 MB, free: 5.914 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006569/0.337, allocations: 360.9 kB / 387.2 MB, free: 5.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.337, allocations: 6.281 kB / 387.2 MB, free: 5.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.337, allocations: 1.438 kB / 387.2 MB, free: 5.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004084/0.3374, allocations: 120.7 kB / 387.4 MB, free: 5.699 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.3376, allocations: 26.92 kB / 387.4 MB, free: 5.699 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002904/0.3405, allocations: 4.981 MB / 392.4 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002261/0.3408, allocations: 32.58 kB / 392.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.3408, allocations: 10 kB / 392.4 MB, free: 0.8359 MB / 318.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.0001439/0.3409, allocations: 145.9 kB / 392.6 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.546e-05/0.341, allocations: 37.73 kB / 392.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.661e-05/0.3411, allocations: 42.88 kB / 392.6 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.3411, allocations: 2.281 kB / 392.6 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.3411, allocations: 0 / 392.6 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.3411, allocations: 6.406 kB / 392.6 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003794/0.3415, allocations: 381.9 kB / 393 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3415, allocations: 0 / 393 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.3416, allocations: 23.53 kB / 393 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003006/0.3419, allocations: 117.4 kB / 393.2 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.585e-05/0.3419, allocations: 1.766 kB / 393.2 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004284/0.3462, allocations: 4.96 MB / 398.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3462, allocations: 1.281 kB / 398.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006812/0.3469, allocations: 408.5 kB / 398.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001458/0.3471, allocations: 125.6 kB / 398.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.689e-05/0.3471, allocations: 5.812 kB / 398.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.3474, allocations: 27.66 kB / 398.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.352e-05/0.3475, allocations: 27.41 kB / 398.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.3475, allocations: 8.516 kB / 398.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002671/0.3478, allocations: 222 kB / 398.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3478, allocations: 0 / 398.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006911/0.3485, allocations: 110.6 kB / 399 MB, free: 10.96 MB / 334.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.001004/0.3495, allocations: 0.9494 MB / 400 MB, free: 10.17 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009765/0.3505, allocations: 0.5706 MB / 400.6 MB, free: 9.746 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3505, allocations: 0 / 400.6 MB, free: 9.746 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005742/0.3511, allocations: 484.6 kB / 401 MB, free: 9.355 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004231/0.3515, allocations: 63.81 kB / 401.1 MB, free: 9.328 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004576/0.3561, allocations: 3.139 MB / 404.2 MB, free: 7.297 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004869/0.3566, allocations: 0.7928 MB / 405 MB, free: 6.598 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001443/0.3567, allocations: 25.61 kB / 405 MB, free: 6.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001543/0.3569, allocations: 104.4 kB / 405.1 MB, free: 6.508 MB / 334.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3569, allocations: 5.094 kB / 405.2 MB, free: 6.504 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04253/0.3994, allocations: 8.639 MB / 413.8 MB, free: 3.426 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.26/12.66, allocations: 9.141 kB / 413.8 MB, free: 3.418 MB / 334.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