Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001352/0.001352, allocations: 116.4 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001329/0.001329, allocations: 204 kB / 19.4 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.439/1.439, allocations: 227.7 MB / 247.9 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 63.89 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2456, allocations: 50.54 MB / 410.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.00521/0.2508, allocations: 3.523 MB / 413.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001943/0.2527, allocations: 0.8529 MB / 414.6 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002343/0.253, allocations: 4 kB / 414.6 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002421/0.2532, allocations: 71.3 kB / 414.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002983/0.2535, allocations: 134.8 kB / 414.8 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004862/0.254, allocations: 139.8 kB / 414.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006683/0.2547, allocations: 0.5016 MB / 415.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000265/0.2549, allocations: 99.28 kB / 415.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003596/0.2553, allocations: 191.3 kB / 415.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002923/0.2556, allocations: 211 kB / 415.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.803e-05/0.2557, allocations: 40 kB / 416 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.2558, allocations: 44 kB / 416 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.937e-05/0.2559, allocations: 95.67 kB / 416.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002882/0.2562, allocations: 226.8 kB / 416.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006711/0.2568, allocations: 0.4938 MB / 416.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.2568, allocations: 0 / 416.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.2568, allocations: 0 / 416.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.2569, allocations: 0 / 416.8 MB, free: 10.81 MB / 334.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.0013/0.2582, allocations: 0.7359 MB / 417.6 MB, free: 10.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.2582, allocations: 12.03 kB / 417.6 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003817/0.2586, allocations: 76.58 kB / 417.6 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005031/0.2591, allocations: 339.5 kB / 418 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.629e-05/0.2591, allocations: 21.03 kB / 418 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.634e-05/0.2592, allocations: 32.38 kB / 418 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006344/0.2598, allocations: 359 kB / 418.4 MB, free: 9.148 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.2598, allocations: 3.938 kB / 418.4 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.029e-05/0.2599, allocations: 20 kB / 418.4 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.2599, allocations: 8 kB / 418.4 MB, free: 9.117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005543/0.2604, allocations: 270.4 kB / 418.7 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002055/0.2625, allocations: 1.411 MB / 420.1 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004217/0.2629, allocations: 202.5 kB / 420.3 MB, free: 7.137 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/0.2631, allocations: 97.22 kB / 420.4 MB, free: 7.039 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.704e-05/0.2632, allocations: 4 kB / 420.4 MB, free: 7.035 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.2632, allocations: 38.42 kB / 420.4 MB, free: 6.988 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.2632, allocations: 3.938 kB / 420.4 MB, free: 6.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.00156/0.2648, allocations: 0.6981 MB / 421.1 MB, free: 6.215 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.996e-05/0.2648, allocations: 55.41 kB / 421.2 MB, free: 6.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003281/0.2651, allocations: 308.6 kB / 421.5 MB, free: 5.832 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/0.2652, allocations: 29.7 kB / 421.5 MB, free: 5.797 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.2653, allocations: 216.4 kB / 421.7 MB, free: 5.582 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.336e-05/0.2654, allocations: 83.36 kB / 421.8 MB, free: 5.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.34e-05/0.2655, allocations: 49.66 kB / 421.8 MB, free: 5.445 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.2656, allocations: 342.8 kB / 422.2 MB, free: 5.102 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.2658, allocations: 79.95 kB / 422.3 MB, free: 5.023 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.266, allocations: 128.2 kB / 422.4 MB, free: 4.883 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003936/0.2664, allocations: 200.1 kB / 422.6 MB, free: 4.672 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.2664, allocations: 0 / 422.6 MB, free: 4.672 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007335/0.2672, allocations: 355.7 kB / 422.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.2672, allocations: 4 kB / 422.9 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.2672, allocations: 4 kB / 422.9 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004097/0.2676, allocations: 114.5 kB / 423 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00018/0.2678, allocations: 35.91 kB / 423.1 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004254/0.272, allocations: 4.972 MB / 428 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002557/0.2723, allocations: 31.77 kB / 428.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.2723, allocations: 8 kB / 428.1 MB, free: 14.71 MB / 350.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.0002342/0.2726, allocations: 141.8 kB / 428.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.336e-05/0.2726, allocations: 43.7 kB / 428.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.099e-05/0.2727, allocations: 39.45 kB / 428.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.2727, allocations: 3.984 kB / 428.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2727, allocations: 8 kB / 428.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.2727, allocations: 3.938 kB / 428.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000482/0.2732, allocations: 377.3 kB / 428.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.2732, allocations: 0 / 428.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/0.2733, allocations: 19.98 kB / 428.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003489/0.2737, allocations: 118.6 kB / 428.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.2737, allocations: 4 kB / 428.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004276/0.278, allocations: 4.975 MB / 433.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.278, allocations: 0 / 433.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006513/0.2786, allocations: 400.9 kB / 434.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001657/0.2788, allocations: 136.8 kB / 434.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.422e-05/0.2788, allocations: 8 kB / 434.3 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002271/0.2791, allocations: 19.98 kB / 434.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.607e-05/0.2791, allocations: 27.97 kB / 434.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.2792, allocations: 11.92 kB / 434.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002588/0.2794, allocations: 223.1 kB / 434.6 MB, free: 7.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2794, allocations: 0 / 434.6 MB, free: 7.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007039/0.2801, allocations: 111.8 kB / 434.7 MB, free: 7.551 MB / 350.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.000159/0.2803, allocations: 112.9 kB / 434.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009752/0.2813, allocations: 0.5583 MB / 435.4 MB, free: 6.836 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2813, allocations: 4.062 kB / 435.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000563/0.2818, allocations: 467.9 kB / 435.9 MB, free: 6.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004378/0.2823, allocations: 61.91 kB / 435.9 MB, free: 6.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.2835, allocations: 0.6372 MB / 436.6 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004498/0.284, allocations: 0.7953 MB / 437.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001064/0.2841, allocations: 18.98 kB / 437.4 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.581e-05/0.2841, allocations: 27.36 kB / 437.4 MB, free: 4.742 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.2841, allocations: 4 kB / 437.4 MB, free: 4.738 MB / 350.1 MB Notification: Performance of Templates: time 0.01095/0.2951, allocations: 5.503 MB / 442.9 MB, free: 15.29 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches