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: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001691/0.001691, allocations: 110.6 kB / 17.73 MB, free: 5.344 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.001861/0.001861, allocations: 194.9 kB / 18.66 MB, free: 4.418 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.484/1.484, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001237/0.001237, allocations: 55.92 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09532/0.09656, allocations: 46.61 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004787/0.1014, allocations: 3.45 MB / 378.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.1033, allocations: 0.7952 MB / 379.4 MB, free: 308 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004248/0.1038, allocations: 8 kB / 379.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002929/0.1041, allocations: 63.3 kB / 379.5 MB, free: 236 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004874/0.1046, allocations: 142.8 kB / 379.6 MB, free: 92 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2127/0.3174, allocations: 98.62 kB / 379.7 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001041/0.3184, allocations: 0.5018 MB / 380.2 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002951/0.3187, allocations: 140.9 kB / 380.3 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000306/0.3191, allocations: 188.9 kB / 380.5 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002563/0.3193, allocations: 209.6 kB / 380.7 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.502e-05/0.3194, allocations: 39.88 kB / 380.8 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.113e-05/0.3195, allocations: 39.22 kB / 380.8 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.482e-05/0.3196, allocations: 88.25 kB / 380.9 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002079/0.3198, allocations: 226.4 kB / 381.1 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000679/0.3205, allocations: 494.2 kB / 381.6 MB, free: 9.539 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3205, allocations: 0 / 381.6 MB, free: 9.539 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3205, allocations: 0.625 kB / 381.6 MB, free: 9.539 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.3205, allocations: 3.531 kB / 381.6 MB, free: 9.539 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.001175/0.3217, allocations: 0.7143 MB / 382.3 MB, free: 9.043 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.3217, allocations: 15.89 kB / 382.3 MB, free: 9.039 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.3219, allocations: 48.39 kB / 382.4 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004489/0.3223, allocations: 314.3 kB / 382.7 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.097e-05/0.3224, allocations: 25.41 kB / 382.7 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.653e-05/0.3225, allocations: 28.72 kB / 382.7 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006904/0.3231, allocations: 361.5 kB / 383.1 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.3232, allocations: 11.81 kB / 383.1 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.3232, allocations: 15.69 kB / 383.1 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.3232, allocations: 7.656 kB / 383.1 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005631/0.3238, allocations: 267.9 kB / 383.4 MB, free: 8.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001875/0.3257, allocations: 1.408 MB / 384.8 MB, free: 7.914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004391/0.3261, allocations: 218.4 kB / 385 MB, free: 7.891 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002231/0.3264, allocations: 111 kB / 385.1 MB, free: 7.855 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.3264, allocations: 2.312 kB / 385.1 MB, free: 7.855 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.204e-05/0.3264, allocations: 37.41 kB / 385.1 MB, free: 7.812 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.763e-06/0.3264, allocations: 0 / 385.1 MB, free: 7.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001443/0.3279, allocations: 0.7 MB / 385.8 MB, free: 7.348 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.838e-05/0.3279, allocations: 54.89 kB / 385.9 MB, free: 7.285 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003396/0.3283, allocations: 307.4 kB / 386.2 MB, free: 7.117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.3283, allocations: 31.14 kB / 386.2 MB, free: 7.082 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.3284, allocations: 210.5 kB / 386.4 MB, free: 6.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.966e-05/0.3285, allocations: 78.11 kB / 386.5 MB, free: 6.852 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.374e-05/0.3286, allocations: 50.56 kB / 386.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.347e-05/0.3287, allocations: 344.1 kB / 386.9 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.3289, allocations: 77.53 kB / 387 MB, free: 6.465 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/0.3291, allocations: 123.9 kB / 387.1 MB, free: 6.395 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003648/0.3295, allocations: 202.3 kB / 387.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3295, allocations: 0 / 387.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006941/0.3302, allocations: 353.7 kB / 387.6 MB, free: 6.133 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.3302, allocations: 5.406 kB / 387.6 MB, free: 6.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.3302, allocations: 1.062 kB / 387.6 MB, free: 6.133 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004087/0.3306, allocations: 116 kB / 387.8 MB, free: 6.082 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001804/0.3308, allocations: 41.78 kB / 387.8 MB, free: 6.074 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003056/0.3339, allocations: 4.964 MB / 392.8 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002538/0.3341, allocations: 28.11 kB / 392.8 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.188e-05/0.3342, allocations: 11.58 kB / 392.8 MB, free: 1.227 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.0001796/0.3344, allocations: 146 kB / 392.9 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.5e-05/0.3344, allocations: 41.98 kB / 393 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.297e-05/0.3345, allocations: 42.91 kB / 393 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.3345, allocations: 6.031 kB / 393 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3345, allocations: 1.312 kB / 393 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.3345, allocations: 1.266 kB / 393 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004521/0.335, allocations: 375.4 kB / 393.4 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.335, allocations: 4.5 kB / 393.4 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.3351, allocations: 19.77 kB / 393.4 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003187/0.3354, allocations: 118.7 kB / 393.5 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.3355, allocations: 6.234 kB / 393.5 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003693/0.3392, allocations: 4.96 MB / 398.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3392, allocations: 2 kB / 398.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006487/0.3398, allocations: 403.7 kB / 398.9 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001533/0.34, allocations: 128.2 kB / 399 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.92e-05/0.3401, allocations: 7.047 kB / 399 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002232/0.3403, allocations: 16.28 kB / 399.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.3404, allocations: 31.94 kB / 399.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.857e-05/0.3404, allocations: 5.5 kB / 399.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002517/0.3407, allocations: 221.1 kB / 399.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3407, allocations: 4 kB / 399.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006908/0.3414, allocations: 114.2 kB / 399.4 MB, free: 11.34 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.0001387/0.3415, allocations: 110.7 kB / 399.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009377/0.3425, allocations: 0.5735 MB / 400.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3425, allocations: 1.469 kB / 400.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005088/0.343, allocations: 479.6 kB / 400.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004094/0.3434, allocations: 65.23 kB / 400.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.3447, allocations: 0.6206 MB / 401.3 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003814/0.3451, allocations: 0.7935 MB / 402.1 MB, free: 9.324 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001184/0.3452, allocations: 24.52 kB / 402.1 MB, free: 9.316 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.652e-05/0.3452, allocations: 23.41 kB / 402.1 MB, free: 9.305 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3453, allocations: 1.5 kB / 402.1 MB, free: 9.305 MB / 334.1 MB Notification: Performance of Templates: time 0.01394/0.3592, allocations: 5.453 MB / 407.6 MB, free: 8.172 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins/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