Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008976/0.0008974, allocations: 202.8 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 226.5 MB / 245.4 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000709/0.0007091, allocations: 103 kB / 297.4 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002309/0.000231, allocations: 4 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2044/0.2047, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08611/0.2908, allocations: 79.49 MB / 488.2 MB, free: 12.1 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.2911, allocations: 71.97 kB / 488.2 MB, free: 12.03 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01577/0.3069, allocations: 6.589 MB / 494.8 MB, free: 5.391 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3069, allocations: 4 kB / 494.8 MB, free: 5.387 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.861e-05/0.3069, allocations: 12 kB / 494.8 MB, free: 5.375 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.0008758/0.3078, allocations: 0.6585 MB / 495.5 MB, free: 4.664 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.3078, allocations: 16.39 kB / 495.5 MB, free: 4.648 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002964/0.3081, allocations: 80.34 kB / 495.6 MB, free: 4.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003139/0.3085, allocations: 311.2 kB / 495.9 MB, free: 4.227 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.3085, allocations: 25.03 kB / 495.9 MB, free: 4.203 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.276e-05/0.3085, allocations: 32.31 kB / 495.9 MB, free: 4.172 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005608/0.3091, allocations: 355.3 kB / 496.3 MB, free: 3.809 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.3091, allocations: 8.188 kB / 496.3 MB, free: 3.801 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.231e-05/0.3092, allocations: 11.94 kB / 496.3 MB, free: 3.789 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.3092, allocations: 8 kB / 496.3 MB, free: 3.781 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005132/0.3097, allocations: 278.4 kB / 496.6 MB, free: 3.512 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001749/0.3115, allocations: 1.43 MB / 498 MB, free: 1.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003903/0.3119, allocations: 235.4 kB / 498.2 MB, free: 1.742 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002008/0.3121, allocations: 108.8 kB / 498.4 MB, free: 1.633 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.3121, allocations: 7.984 kB / 498.4 MB, free: 1.625 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.3121, allocations: 42.55 kB / 498.4 MB, free: 1.574 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.3121, allocations: 4 kB / 498.4 MB, free: 1.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.001383/0.3135, allocations: 0.7115 MB / 499.1 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.533e-05/0.3136, allocations: 67.14 kB / 499.2 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002703/0.3139, allocations: 304.5 kB / 499.5 MB, free: 412 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.168e-05/0.3139, allocations: 37.64 kB / 499.5 MB, free: 368 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.314, allocations: 208.2 kB / 499.7 MB, free: 156 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.68e-05/0.3141, allocations: 70.92 kB / 499.8 MB, free: 84 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.335e-05/0.3141, allocations: 4 kB / 499.8 MB, free: 80 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.3142, allocations: 342.8 kB / 0.4884 GB, free: 15.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.3144, allocations: 79.97 kB / 0.4885 GB, free: 15.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002042/0.3146, allocations: 137 kB / 0.4886 GB, free: 15.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003705/0.315, allocations: 208.1 kB / 0.4888 GB, free: 15.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.315, allocations: 0 / 0.4888 GB, free: 15.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007264/0.3157, allocations: 379.4 kB / 0.4892 GB, free: 14.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.3157, allocations: 8 kB / 0.4892 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3158, allocations: 0 / 0.4892 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003716/0.3161, allocations: 122.5 kB / 0.4893 GB, free: 14.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.3163, allocations: 27.98 kB / 0.4893 GB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003072/0.3194, allocations: 4.457 MB / 0.4937 GB, free: 9.875 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002429/0.3197, allocations: 31.73 kB / 0.4937 GB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.3197, allocations: 8 kB / 0.4937 GB, free: 9.836 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.0001664/0.3199, allocations: 149.7 kB / 0.4939 GB, free: 9.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.519e-05/0.3199, allocations: 31.62 kB / 0.4939 GB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.164e-05/0.32, allocations: 47.22 kB / 0.4939 GB, free: 9.605 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.32, allocations: 4 kB / 0.4939 GB, free: 9.602 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.32, allocations: 0 / 0.4939 GB, free: 9.602 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.32, allocations: 0 / 0.4939 GB, free: 9.602 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003733/0.3204, allocations: 381.2 kB / 0.4943 GB, free: 9.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3204, allocations: 0 / 0.4943 GB, free: 9.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.3205, allocations: 19.98 kB / 0.4943 GB, free: 9.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003044/0.3208, allocations: 122.4 kB / 0.4944 GB, free: 9.031 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.3208, allocations: 4.125 kB / 0.4944 GB, free: 9.027 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002937/0.3238, allocations: 4.446 MB / 0.4988 GB, free: 4.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3238, allocations: 4.125 kB / 0.4988 GB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005812/0.3244, allocations: 417.5 kB / 0.4992 GB, free: 3.742 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.3245, allocations: 128.6 kB / 0.4993 GB, free: 3.598 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.326e-05/0.3246, allocations: 4 kB / 0.4993 GB, free: 3.594 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.3248, allocations: 23.98 kB / 0.4993 GB, free: 3.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.664e-05/0.3249, allocations: 27.89 kB / 0.4994 GB, free: 3.543 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.3249, allocations: 16 kB / 0.4994 GB, free: 3.527 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001958/0.3251, allocations: 215.3 kB / 0.4996 GB, free: 3.316 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3251, allocations: 0 / 0.4996 GB, free: 3.316 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006094/0.3257, allocations: 115.7 kB / 0.4997 GB, free: 3.203 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.0001381/0.3259, allocations: 107.1 kB / 0.4998 GB, free: 3.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000797/0.3267, allocations: 0.5702 MB / 0.5003 GB, free: 2.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3267, allocations: 0 / 0.5003 GB, free: 2.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004668/0.3272, allocations: 495.8 kB / 0.5008 GB, free: 1.957 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004297/0.3276, allocations: 62.58 kB / 0.5009 GB, free: 1.898 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.3287, allocations: 0.7884 MB / 0.5017 GB, free: 1.074 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.329, allocations: 0.7951 MB / 0.5024 GB, free: 260 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.049e-05/0.3291, allocations: 20 kB / 0.5024 GB, free: 244 kB / 378.7 MB Notification: Performance of SimCode: time 3.3e-07/0.3291, allocations: 0 / 0.5024 GB, free: 244 kB / 378.7 MB Notification: Performance of Templates: time 0.1576/0.4866, allocations: 8.248 MB / 0.5105 GB, free: 94.05 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches