Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001188/0.001188, allocations: 197.5 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.183/1.183, allocations: 227.2 MB / 245 MB, free: 7.551 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008603/0.0008602, allocations: 109.2 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002102/0.0002103, allocations: 8 kB / 357.9 MB, free: 9.539 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1998/0.2, allocations: 51.48 MB / 409.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09117/0.2912, allocations: 79.57 MB / 489 MB, free: 11.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.2915, allocations: 75.97 kB / 489 MB, free: 10.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01614/0.3076, allocations: 6.592 MB / 495.6 MB, free: 4.352 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3077, allocations: 0 / 495.6 MB, free: 4.352 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.093e-05/0.3077, allocations: 12 kB / 495.7 MB, free: 4.34 MB / 362.7 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.0008537/0.3086, allocations: 0.6583 MB / 496.3 MB, free: 3.633 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.3086, allocations: 8.031 kB / 496.3 MB, free: 3.625 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003069/0.3089, allocations: 83.41 kB / 496.4 MB, free: 3.543 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003175/0.3092, allocations: 298.5 kB / 496.7 MB, free: 3.211 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.3093, allocations: 24.66 kB / 496.7 MB, free: 3.188 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.891e-05/0.3093, allocations: 28 kB / 496.7 MB, free: 3.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005642/0.3099, allocations: 362.7 kB / 497.1 MB, free: 2.789 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.3099, allocations: 3.984 kB / 497.1 MB, free: 2.785 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.083e-05/0.3099, allocations: 12 kB / 497.1 MB, free: 2.773 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.31, allocations: 8 kB / 497.1 MB, free: 2.766 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000501/0.3105, allocations: 282.4 kB / 497.4 MB, free: 2.488 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001826/0.3123, allocations: 1.438 MB / 498.8 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004104/0.3127, allocations: 226.5 kB / 499.1 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.3128, allocations: 4 kB / 499.1 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.3128, allocations: 42.5 kB / 499.1 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 2.686e-06/0.3128, allocations: 4 kB / 499.1 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.001406/0.3142, allocations: 0.709 MB / 499.8 MB, free: 15.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.977e-05/0.3143, allocations: 55.41 kB / 499.9 MB, free: 15.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002543/0.3145, allocations: 267.7 kB / 0.4884 GB, free: 15.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.3146, allocations: 25.7 kB / 0.4884 GB, free: 15.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.3147, allocations: 216.1 kB / 0.4886 GB, free: 15.31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.346e-05/0.3148, allocations: 82.84 kB / 0.4887 GB, free: 15.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.19e-05/0.3148, allocations: 4 kB / 0.4887 GB, free: 15.22 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3149, allocations: 346.8 kB / 0.4891 GB, free: 14.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001842/0.3151, allocations: 75.97 kB / 0.4891 GB, free: 14.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002099/0.3153, allocations: 144.2 kB / 0.4893 GB, free: 14.64 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001854/0.3155, allocations: 79.98 kB / 0.4893 GB, free: 14.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3155, allocations: 0 / 0.4893 GB, free: 14.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007236/0.3162, allocations: 375.5 kB / 0.4897 GB, free: 14.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.3163, allocations: 8 kB / 0.4897 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3163, allocations: 0 / 0.4897 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003833/0.3167, allocations: 122.5 kB / 0.4898 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001745/0.3169, allocations: 31.98 kB / 0.4899 GB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003377/0.3202, allocations: 4.473 MB / 0.4942 GB, free: 9.137 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002166/0.3205, allocations: 31.81 kB / 0.4943 GB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.995e-05/0.3205, allocations: 12 kB / 0.4943 GB, free: 9.094 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001791/0.3207, allocations: 153.6 kB / 0.4944 GB, free: 8.938 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.532e-05/0.3208, allocations: 31.62 kB / 0.4944 GB, free: 8.906 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.241e-05/0.3208, allocations: 39.17 kB / 0.4945 GB, free: 8.867 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.3208, allocations: 0 / 0.4945 GB, free: 8.867 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.3208, allocations: 4 kB / 0.4945 GB, free: 8.863 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3208, allocations: 0 / 0.4945 GB, free: 8.863 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003891/0.3212, allocations: 377.4 kB / 0.4948 GB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.3212, allocations: 4 kB / 0.4948 GB, free: 8.441 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/0.3214, allocations: 23.98 kB / 0.4949 GB, free: 8.418 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003203/0.3217, allocations: 118.4 kB / 0.495 GB, free: 8.293 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.3217, allocations: 11.98 kB / 0.495 GB, free: 8.281 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003161/0.3249, allocations: 4.473 MB / 0.4994 GB, free: 3.406 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3249, allocations: 4.031 kB / 0.4994 GB, free: 3.402 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005654/0.3255, allocations: 415.8 kB / 0.4998 GB, free: 2.973 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.3256, allocations: 129 kB / 0.4999 GB, free: 2.828 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.997e-05/0.3257, allocations: 0 / 0.4999 GB, free: 2.828 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.3259, allocations: 23.98 kB / 0.4999 GB, free: 2.805 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.789e-05/0.326, allocations: 35.89 kB / 0.4999 GB, free: 2.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.326, allocations: 8.188 kB / 0.4999 GB, free: 2.762 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002067/0.3262, allocations: 215.1 kB / 0.5002 GB, free: 2.551 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.794e-06/0.3262, allocations: 0 / 0.5002 GB, free: 2.551 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005917/0.3268, allocations: 119.6 kB / 0.5003 GB, free: 2.434 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001444/0.327, allocations: 111.5 kB / 0.5004 GB, free: 2.312 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008226/0.3278, allocations: 0.578 MB / 0.5009 GB, free: 1.695 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3278, allocations: 0 / 0.5009 GB, free: 1.695 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004591/0.3283, allocations: 487.8 kB / 0.5014 GB, free: 1.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.3286, allocations: 55.33 kB / 0.5015 GB, free: 1.125 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.3296, allocations: 0.7606 MB / 0.5022 GB, free: 348 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.149/0.4786, allocations: 0.798 MB / 0.503 GB, free: 94.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002177/0.4789, allocations: 22.36 kB / 0.503 GB, free: 94.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.812e-05/0.479, allocations: 20.48 kB / 0.503 GB, free: 94.39 MB / 378.7 MB Notification: Performance of SimCode: time 1.092e-06/0.479, allocations: 0 / 0.503 GB, free: 94.39 MB / 378.7 MB Notification: Performance of Templates: time 0.009934/0.4889, allocations: 4.718 MB / 0.5076 GB, free: 94.3 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches