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/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 trunk/package.mo", uses=false) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001337/0.001337, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 67.88 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2921, allocations: 50.55 MB / 408.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.00802/0.3002, allocations: 3.519 MB / 412.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002261/0.3025, allocations: 0.8413 MB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002872/0.3028, allocations: 11.94 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002569/0.3031, allocations: 67.3 kB / 413.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003714/0.3035, allocations: 134.8 kB / 413.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005112/0.304, allocations: 131.8 kB / 413.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007633/0.3048, allocations: 0.5133 MB / 414 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003369/0.3051, allocations: 139.2 kB / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000389/0.3056, allocations: 195.3 kB / 414.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003742/0.3059, allocations: 211 kB / 414.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.877e-05/0.306, allocations: 40 kB / 414.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001583/0.3062, allocations: 40 kB / 414.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.3064, allocations: 95.66 kB / 414.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002967/0.3067, allocations: 226.8 kB / 415 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007713/0.3075, allocations: 0.493 MB / 415.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3075, allocations: 0 / 415.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3075, allocations: 0 / 415.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.295e-06/0.3075, allocations: 0 / 415.5 MB, free: 10.82 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.001638/0.3091, allocations: 0.7398 MB / 416.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.3092, allocations: 8.031 kB / 416.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001173/0.3093, allocations: 70.72 kB / 416.3 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005392/0.3099, allocations: 84.58 kB / 416.4 MB, free: 9.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006766/0.3106, allocations: 327.4 kB / 416.7 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.162e-05/0.3106, allocations: 25.03 kB / 416.7 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.014e-05/0.3107, allocations: 28.38 kB / 416.7 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001065/0.3118, allocations: 366.8 kB / 417.1 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.3118, allocations: 0 / 417.1 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.33e-05/0.3119, allocations: 12 kB / 417.1 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.585e-05/0.3119, allocations: 8 kB / 417.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.313, allocations: 270.4 kB / 417.4 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003485/0.3165, allocations: 1.415 MB / 418.8 MB, free: 7.281 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007891/0.3173, allocations: 234.4 kB / 419 MB, free: 7.043 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004122/0.3177, allocations: 109.2 kB / 419.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.3178, allocations: 0 / 419.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.44e-05/0.3178, allocations: 42.42 kB / 419.2 MB, free: 6.883 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.505e-06/0.3179, allocations: 0 / 419.2 MB, free: 6.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.002731/0.3206, allocations: 0.702 MB / 419.9 MB, free: 6.109 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.446e-05/0.3207, allocations: 51.41 kB / 419.9 MB, free: 6.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005773/0.3213, allocations: 308.6 kB / 420.2 MB, free: 5.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.644e-05/0.3213, allocations: 37.7 kB / 420.3 MB, free: 5.688 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002488/0.3216, allocations: 224.4 kB / 420.5 MB, free: 5.465 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.324e-05/0.3217, allocations: 67.39 kB / 420.5 MB, free: 5.398 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001506/0.3219, allocations: 49.66 kB / 420.6 MB, free: 5.344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002609/0.3222, allocations: 346.8 kB / 420.9 MB, free: 4.996 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003675/0.3226, allocations: 75.97 kB / 421 MB, free: 4.922 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004353/0.323, allocations: 128.2 kB / 421.1 MB, free: 4.781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007987/0.3238, allocations: 200 kB / 421.3 MB, free: 4.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.3238, allocations: 4 kB / 421.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001414/0.3253, allocations: 355.7 kB / 421.7 MB, free: 4.203 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.3253, allocations: 4 kB / 421.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.3253, allocations: 4 kB / 421.7 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000697/0.326, allocations: 122.6 kB / 421.8 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003282/0.3264, allocations: 35.84 kB / 421.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007019/0.3334, allocations: 4.971 MB / 426.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000385/0.3338, allocations: 24.12 kB / 426.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.372e-05/0.3339, allocations: 7.984 kB / 426.8 MB, free: 14.61 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.0003018/0.3342, allocations: 157.8 kB / 427 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.3343, allocations: 39.7 kB / 427 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001042/0.3345, allocations: 39.17 kB / 427.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.3345, allocations: 0 / 427.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3345, allocations: 0 / 427.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.3345, allocations: 4 kB / 427.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007411/0.3353, allocations: 381.4 kB / 427.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3353, allocations: 0 / 427.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002021/0.3355, allocations: 19.92 kB / 427.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005972/0.3361, allocations: 118.5 kB / 427.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.886e-05/0.3362, allocations: 3.984 kB / 427.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006766/0.3429, allocations: 4.972 MB / 432.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.343, allocations: 0 / 432.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.344, allocations: 411.2 kB / 433 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002231/0.3443, allocations: 129 kB / 433.1 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.393e-05/0.3443, allocations: 8 kB / 433.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003748/0.3447, allocations: 23.97 kB / 433.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.3449, allocations: 27.84 kB / 433.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-05/0.3449, allocations: 12 kB / 433.2 MB, free: 7.766 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003974/0.3453, allocations: 223.1 kB / 433.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.3453, allocations: 0 / 433.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001188/0.3465, allocations: 115.8 kB / 433.5 MB, free: 7.434 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.001618/0.3482, allocations: 0.9402 MB / 434.4 MB, free: 6.461 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.3497, allocations: 0.5661 MB / 435 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.3498, allocations: 0 / 435 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009967/0.3508, allocations: 487.8 kB / 435.5 MB, free: 5.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006944/0.3515, allocations: 61.97 kB / 435.5 MB, free: 5.281 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00773/0.3592, allocations: 3.157 MB / 438.7 MB, free: 2.012 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006846/0.3599, allocations: 0.7993 MB / 439.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001958/0.3602, allocations: 26.95 kB / 439.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002401/0.3604, allocations: 115.4 kB / 439.6 MB, free: 1.047 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3604, allocations: 0 / 439.6 MB, free: 1.047 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04589/0.4063, allocations: 8.716 MB / 448.3 MB, free: 8.523 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.47, allocations: 10.52 kB / 448.4 MB, free: 8.52 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches